createPersonalUserTokenV2()

API Stability Long-Term

The createPersonalUserTokenV2() GraphQL mutation field is used to create a personal user token for the user. It will inherit the same permissions as the user.

Syntax

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

graphql
createPersonalUserTokenV2(
       input: CreatePersonalUserTokenInput!
    ): CreatePersonalUserTokenV2Output!

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

Show:
graphql
mutation {
  createPersonalUserTokenV2(input:
       { expireAt: null
      } )
  { token, tokenMetadata { name } }
}

Given Datatypes

For CreatePersonalUserTokenInput, there are a few parameters. Below is a list of them:

Table: CreatePersonalUserTokenInput

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 17, 2024
expireAtlong   Name of the view of the parser.
ipFilterIdstring   Name of the parser.

Returned Datatypes

As indicated by the syntax above, this mutation will return data using the datatype, CreatePersonalUserTokenV2Output. Below is the parameter of that datatype:

Table: CreatePersonalUserTokenV2Output

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: Dec 10, 2024
tokenstringyes Long-TermThe personal user token.
tokenMetadataPersonalUserTokenyes Long-TermMetadata about the token. See PersonalUserToken.