Rename User Pat
PATs
Rename a User Personal Access Token
PATCH
Rename User Pat
Auth
Requirespats:create, not pats:delete — a rename leaves the token’s value intact, so it relabels the credential rather than revoking it. The rename applies to the caller’s own Logto personal access tokens, keyed on the token’s subject. No active organization is needed — user PATs aren’t org-bound.
Response
Same shape as one element of the List User Personal Access Tokens response, reflecting the new name.Errors
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The PAT's current name, not an id — user PATs are addressed by name and have no local database row.
Body
application/json
New name for the token; must still be unique among the caller's user PATs (409 on collision).