Update API token roles

Update Workspace and Organization roles for an API token.

Path parameters

organizationIdstringRequired

The ID of the Organization where you want to update an API token.

tokenIdstringRequired

The API token you want to update.

Headers

AuthorizationstringRequired

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

Request

This endpoint expects an object.
roleslist of objectsRequired

The roles of the API token.

Response

OK

deploymentRoleslist of objectsOptional

A list of the subject’s Deployment roles. Currently only for API tokens.

organizationRoleenumOptional

The subject’s Organization role.

Allowed values:
workspaceRoleslist of objectsOptional

A list of the subject’s Workspace roles.

Errors