Access tokens
Patch access token
Update an access token's settings. Updating an access token uses a JSON patch representation of the desired changes. To learn more, read Updates.
patch/api/v2/tokens/{id}
Path parameters
idstring string required
The ID of the access token to update
The ID of the access token to update
Request body
Example request
[
{
"op": "replace",
"path": "/exampleField",
"value": "new example value"
}
]Response
Access token response
Example response
{
"_member": {
"_links": {
"self": {
"href": "/api/v2/members/569f183514f4432160000007",
"type": "application/json"
}
},
"_id": "569f183514f4432160000007",
"firstName": "Ariel",
"lastName": "Flores",
"role": "admin",
"email": "ariel@acme.com"
},
"name": "Example reader token",
"description": "A reader token used in testing and examples",
"customRoleIds": [],
"inlineRole": [],
"role": "reader",
"token": "1234",
"_links": {
"parent": {
"href": "/api/v2/tokens",
"type": "application/json"
},
"self": {
"href": "/api/v2/tokens/61095542756dba551110ae21",
"type": "application/json"
}
},
"defaultApiVersion": 20240415
}