-
Notifications
You must be signed in to change notification settings - Fork 8
Teams
Michael Rybintsev edited this page Aug 8, 2019
·
2 revisions
The Teams API is a representation of Teams in a Workspace within Huddle.
A GET will retrieve all of the Teams of which the Actor is a member in the given Workspace.
A Company Manager (of the Company in which the Workspace was created) or a Workspace Manager (of the Workspace) will GET all of the Teams in the Workspace.
In this example we are requesting the Teams of a Workspace with id 123, with xml in the accept header.
GET /people/workspaces/123/teams HTTP/1.1
Accept: application/vnd.huddle.data+xml
Authorization: OAuth2 frootymcnooty/vonbootycherooty
HTTP/1.1 200 OK
Content-Type: application/vnd.huddle.data+xml
<teams>
<link rel="self" href="people/workspaces/123/teams" />
<team>
<link rel="self" href="..." />
<name>Team Keen</name>
</team>
<team>
<link rel="self" href="..." />
<name>Dev Leppard</name>
</team>
</teams>
In this example we are requesting the Teams of a Workspace with id 123, with json in the accept header.
GET /people/workspaces/123/teams HTTP/1.1
Accept: application/vnd.huddle.data+json
Authorization: OAuth2 frootymcnooty/vonbootycherooty
HTTP/1.1 200 OK
Content-Type: application/vnd.huddle.data+json
{
"links" : [{ "rel" : "self", "href" : "..." }],
"teams" : [{
"links" : [ { "rel" : "self", "href" : "..." }],
"name" : "Team Keen"
},{
"links" : [ { "rel" : "self", "href" : "..." }],
"name" : "Dev Leppard"
}]
}
Name | Description | Methods |
---|---|---|
self | The current URI of this team list. | GET |
Case | Response |
---|---|
Invalid authorization token | 401 Unauthorized |
Actor is in the company, but not in the workspace (unless an appropriate manager) | 403 Forbidden |
Workspace does not exist (may have been deleted) | 404 Not Found |
Actor is not in the workspace and not in the company | 404 Not Found |
- Basic concepts
-
Resources
- Actor
- Approvals
- BulkProcess
- Calendar
- Membership
- Company
- Document
- Document library settings
- Folder
- Paged Folder
- Pins
- Integrations
- Form
- Friends
- Invitation
- Link
- Document Lock
- Folder Lock
- Localisation
- MemberAutocomplete
- Notifications
- Offline item
- PeopleBulkProcess
- Permissions
- Presence
- PublishedDocuments
- Recents
- Recommendations
- Recycle Bin
- Search
- Share
- Tasks (Todos), File Requests, Approvals
- Tasks on Documents
- Actions
- UserApprovals
- User
- VersionHistory
- Workspace
- Workspaces
- SamlPartners
- Logout
- Impersonation
- Administration
- WebHooks