Files
api-specs/idn/beta/schemas/CreatePersonalAccessTokenRequest.yaml
2022-11-08 17:34:59 +00:00

19 lines
800 B
YAML

type: object
description: Object for specifying the name of a personal access token to create
properties:
name:
type: string
description: >-
The name of the personal access token (PAT) to be created. Cannot be the same as another PAT owned by the user for whom this PAT is being created.
example: "NodeJS Integration"
scope:
type: array
nullable: true
items:
type: string
default: "sp:scopes:all"
description: Scopes of the personal access token. If no scope is specified, the token will be created with the default scope "sp:scopes:all". This means the personal access token will have all the rights of the owner who created it.
example: [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ]
required:
- name