API Stability Long-Term

The updateOrganizationPermissionsTokenPermissions() GraphQL mutation may be used to update the permissions of an organization permission token.

Syntax

Below is the syntax for the updateOrganizationPermissionsTokenPermissions() mutation field:

graphql
updateOrganizationPermissionsTokenPermissions(
      input: UpdateOrganizationPermissionsTokenPermissionsInput!
   ): string!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  updateOrganizationPermissionsTokenPermissions( input:
    {
      id: "abc123",
      permissions: [ ManageUsers, ViewUsage ]
    }
  ) 
}
Example Responses
Show:
json
{
  "data": {
    "updateOrganizationPermissionsTokenPermissions": "abc123"
  }
}

Given Datatypes

UpdateOrganizationPermissionsTokenPermissionsInput has a couple of parameters, and a few sub-parameters. Below is a list of them along with a description of each:

Table: UpdateOrganizationPermissionsTokenPermissionsInput

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 23, 2024
idstringyes  The unique identifier of the organization token.
permissions[OrganizationPermission]yes  The list of permissions to grant. See OrganizationPermission.