Update a personal access token
PATCH/pat/:id
Updates one of your personal access tokens. Send only what you want to change.
- The expiration can only move later, up to a year from now. An expired token can't be extended. Send it as
expires_inorexpires_at, not both. grantsreplaces all of the token's grants.- Switching to
same_as_userdrops the token's grants. Switching back tograntsrequires the grants it should have.
Request
Responses
- 200
- 4XX
- 5XX
The operation was successful.
The request couldn't be processed. For example, a parameter is invalid, the resource doesn't exist, or you don't have permission. The body is a problem details object (RFC 9457).
Something went wrong on nullplatform's side. The body is a problem details object (RFC 9457).