Skip to main content

Update a personal access token

PATCH 

/pat/:id

Updates one of your personal access tokens. Send only what you want to change.

  • expires_at can only move later, up to a year from now. An expired token can't be extended.
  • grants replaces all of the token's grants.
  • Switching to same_as_user drops the token's grants. Switching back to grants requires the grants it should have.

Request​

Responses​

The operation was successful.