Create a token for a service account.
Enterprise feature
Creates a new token for the service account identified by the id.
Authentication
Authorizationstring
API key needed to access this API
OR
AuthorizationBearer
API key needed to access this API, in Bearer token format
Path parameters
id
Request
#/components/schemas/createPatSchema
description
The PAT's description.
expiresAt
The PAT's expiration date.
Response headers
location
The location of the newly created resource.
Response
The resource was successfully created.
id
The PAT's ID. PAT IDs are incrementing integers. In other words, a more recently created PAT will always have a higher ID than an older one.
createdAt
The date and time of when the PAT was created.
description
The PAT's description.
expiresAt
The PAT's expiration date.
secret
The token used for authentication. It is automatically generated by Unleash when the PAT is created and that is the only time this property is returned.
seenAt
When the PAT was last seen/used to authenticate with. null if it has not been used yet.
userId
The ID of the user this PAT belongs to.