Update Team roles

Update Organization and Workspace roles for a Team.

Path parameters

organizationIdstringRequired
The ID of the Organization to which the Team belongs.
teamIdstringRequired
The ID of the Team to update roles for.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
organizationRoleenumRequired
The Team's Organization roles.
Allowed values:
deploymentRoleslist of objectsOptional
The user's updated Deployment roles. The Deployments you specify must belong to the Team's Organization.
workspaceRoleslist of objectsOptional
The Team's updated Workspace roles. The Workspaces you specify must belong to the Team's Organization.

Response

OK
deploymentRoleslist of objects or null
A list of the subject's Deployment roles. Currently only for API tokens.
organizationRoleenum or null
The subject's Organization role.
Allowed values:
workspaceRoleslist of objects or null
A list of the subject's Workspace roles.

Errors