Rotate a Personal Access Token.

RotatePAT replaces a Personal Access Token with a new one that has the same name, organization and permission
groups, and expires the old token after an optional grace period. The new token value is returned once.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Organization ID this token belongs to.

string
required

ID of the PAT to rotate.

Body Params

RotatePATRequest is the request message for rotating a PAT.

string
required

Organization ID this token belongs to.

string
required

ID of the PAT to rotate.

date-time
required

When the new token expires. It must be in the future, at most 366 days ahead.

int32

How long the old token keeps working after the rotation, in seconds. 0 or omitted means the old token stops
working immediately; at most 604800 (7 days). An old token that expires earlier keeps its earlier expiration.
(-- api-linter: core::0142::time-field-type=disabled
aip.dev/not-precedent: integer seconds, consistent with user API key and service account key rotation. --)

Responses

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json