Users

Update personal access token

Changed on

Update a token for the user by name using the legacy path parameter. Deprecated: use the PATCH /personal-access-tokens endpoint instead to avoid url name encoding issues.

patch/api/users/{userId}/personal-access-tokens/{name}

Request

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

Path parameters

userIdstring required

The unique identifier of the user.

namestring required

The current name of the token.

Request body

namestring required

The new token name. Must be unique within the user.

Response

The token was updated successfully.

tenantIdstring required
userIdstring required
namestring required
valuestring required
createdAtnumber required
expiresAtnumber nullable required

Changes

    • breaking

      the response property's maxLength was increased from 21 to 128 for the response status