Gatana logoGatana Docs
RoutesUsersUseridPersonal access tokensPatid

/users/{userId}/personal-access-tokens/{patId}

Update the name or the assigned profiles of a personal access token

PATCH
/users/{userId}/personal-access-tokens/{patId}
AuthorizationBearer <token>

In: header

Path Parameters

userId*string

ID of the user

patId*string

ID of the personal access token

Request Body

application/json

name?string

New display name of the token

Length1 <= length
profileIds?array<>

IDs of the profiles the token uses

Response Body

application/json

curl -X PATCH "https://YOUR_ORG_ID.gatana.ai/api/v1/users/string/personal-access-tokens/string" \  -H "Content-Type: application/json" \  -d '{}'
{}