My account

Rename a personal access token

Changed on

Rename a personal access token of the signed-in user. A logto-verification-id in header and the personal-access-tokens scope are required.

patch/api/my-account/personal-access-tokens

Request

  • Base URL: https://[tenant_id].logto.app
  • URL: https://[tenant_id].logto.app/api/my-account/personal-access-tokens
  • Auth: OAuth 2 (client credentials, token URL /oidc/token, scopes: all)

Request body

currentNamestring required

The current name of the token to rename.

namestring required

The new name of the token. It must be unique among the user's personal access tokens.

Response

The personal access token was renamed successfully.

namestring required
createdAtnumber required
expiresAtnumber nullable required

Changes