# Rename a personal access token **PATCH /api/my-account/personal-access-tokens** Rename a personal access token of the signed-in user. A logto-verification-id in header and the personal-access-tokens scope are required. ## Servers - Logto endpoint address.: https://[tenant_id].logto.app (Logto endpoint address.) ## Authentication methods - O auth2 ## Parameters ### Body: application/json (object) - **currentName** (string) The current name of the token to rename. - **name** (string) The new name of the token. It must be unique among the user's personal access tokens. ## Responses ### 200 The personal access token was renamed successfully. #### Body: application/json (object) - **name** (string) - **createdAt** (number) - **expiresAt** (number | null) ### 400 The request body is invalid, or the personal access token field is not editable in the account center. ### 401 Permission denied, the verification record is invalid or the access token does not include the personal-access-tokens scope. ### 403 The request was made by a third-party application. ### 404 The personal access token was not found. ### 422 The new token name already exists. [Powered by Bump.sh](https://bump.sh)