Tokens

Update User Token

Rename or change scopes of a PAT.

patch/user/me/tokens/{token_id}

Request

  • Base URL: http://localhost:8000
  • URL: http://localhost:8000/user/me/tokens/{token_id}
  • Auth: HTTP bearer

Path parameters

token_idinteger required

Headers

API-Version'1'

Major API version. Omit or send 1 for the current v1 surface. Retired operations use RFC 9745 Deprecation and RFC 8594 Sunset headers.

Request body

namestring nullable
scopesstring[] nullable

Response

Successful Response

idinteger required
namestring required
scopesstring[] required
expires_atstring date-time nullable
last_used_atstring date-time nullable
revoked_atstring date-time nullable
created_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.