API Stability Long-Term

The updateViewPermissionsTokenPermissions() GraphQL mutation may be used to update the permissions of a view permission token.

Syntax

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

graphql
updateViewPermissionsTokenPermissions(
      input: UpdateViewPermissionsTokenPermissionsInput!
   ): string!

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

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

Given Datatypes

For UpdateViewPermissionsTokenPermissionsInput, there are a couple of parameters that may be given. Below is a list of them along with a description of each:

Table: UpdateViewPermissionsTokenPermissionsInput

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: Feb 26, 2025
idstringyes  The unique identifier of the token.
permissions[Permission]yes  A list of permissions associated with the token. See ActorType.