Update personal access token
Update a token for the user by name.
Path parameters
-
The unique identifier of the user.
-
The name of the token.
PATCH
/api/users/{userId}/personal-access-tokens/{name}
curl \
-X PATCH https://[tenant_id].logto.app/api/users/{userId}/personal-access-tokens/{name} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"string"}'
Request examples
{
"name": "string"
}
Response examples (200)
{
"tenantId": "string",
"userId": "string",
"name": "string",
"value": "string",
"createdAt": 42.0,
"expiresAt": 42.0
}