Workspaces are used to divide up your organization into sub-categories such as departments. They can also be used to set up e.g. 'dev' and 'prod' workspaces for environment promotion.
Lists all workspaces the token has access to i.e. will return all workspaces from the Tray Organization if the Org scope token is used, a single workspace for the workspace scoped token.
Array of objects (WorkspaceExternalApiModel) | |
required | object (ExternalApiPageInfoModel) |
Invalid Input
Unauthorized
Forbidden
Not Found
Limit exceeded
Internal Error
{- "elements": [
- {
- "id": "string",
- "name": "string",
- "type": { },
- "description": "string",
- "monthlyTaskLimit": 0
}
], - "pageInfo": {
- "startCursor": "string",
- "endCursor": "string",
- "hasNextPage": true,
- "hasPreviousPage": true
}
}
Gets a workspace by Id.
Invalid Input
Unauthorized
Forbidden
Not Found
Limit exceeded
Internal Error
{- "id": "string",
- "name": "string",
- "type": { },
- "description": "string",
- "monthlyTaskLimit": 0
}
List all users in the workspace
Array of objects (WorkspaceExternalApiModel) | |
required | object (ExternalApiPageInfoModel) |
Invalid Input
Unauthorized
Forbidden
Not Found
Limit exceeded
Internal Error
{- "elements": [
- {
- "id": "string",
- "name": "string",
- "type": { },
- "description": "string",
- "monthlyTaskLimit": 0
}
], - "pageInfo": {
- "startCursor": "string",
- "endCursor": "string",
- "hasNextPage": true,
- "hasPreviousPage": true
}
}
Adds a user to a workspace
Invalid Input
Unauthorized
Forbidden
Not Found
Limit exceeded
Internal Error
{- "userId": "string",
- "roleId": "7382d58e-652a-4905-b7c9-bcca1e0e5391"
}
{ }
Get workspace user by id
Invalid Input
Unauthorized
Forbidden
Not Found
Limit exceeded
Internal Error
{- "workspaceId": "string",
- "id": "string",
- "email": "string",
- "accountType": { },
- "role": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
}
Updates the role of a user in a workspace
Invalid Input
Unauthorized
Forbidden
Not Found
Limit exceeded
Internal Error
{- "roleId": "7382d58e-652a-4905-b7c9-bcca1e0e5391"
}
{ }
Removes a user from a workspace
Invalid Input
Unauthorized
Forbidden
Not Found
Limit exceeded
Internal Error
{ }
Get Workspace Roles
Array of objects (WorkspaceExternalApiModel) | |
required | object (ExternalApiPageInfoModel) |
Invalid Input
Unauthorized
Forbidden
Not Found
Limit exceeded
Internal Error
{- "elements": [
- {
- "id": "string",
- "name": "string",
- "type": { },
- "description": "string",
- "monthlyTaskLimit": 0
}
], - "pageInfo": {
- "startCursor": "string",
- "endCursor": "string",
- "hasNextPage": true,
- "hasPreviousPage": true
}
}