Skip to main content
POST
Update API token roles

Authorizations

Authorization
string
header
required

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

Path Parameters

organizationId
string
required

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

tokenId
string
required

The API token you want to update.

Body

application/json

The request body for updating a token.

roles
object[]
required

The roles of the API token, including DAG roles.

Minimum array length: 1

Response

OK

dagRoles
object[]

A list of the subject's DAG roles.

deploymentRoles
object[]

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

organizationRole
string

The subject's Organization role.

Example:

"ORGANIZATION_OWNER,ORGANIZATION_OBSERVE_ADMIN,ORGANIZATION_OBSERVE_MEMBER,ORGANIZATION_BILLING_ADMIN,ORGANIZATION_MEMBER"

workspaceRoles
object[]

A list of the subject's Workspace roles.