Update a personal access token
PATCH/pat/:id
Updates one of your personal access tokens. Send only what you want to change.
expires_atcan only move later, up to a year from now. An expired token can't be extended.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.
Client error responses due to invalid input or missing parameters.
Server error responses indicating an issue on the API side.