Patch Personal Access Token

PATCH {{baseUrl}}/personal-access-tokens/:id

This performs a targeted update to the field(s) of a Personal Access Token.

Request Body

{"0"=>{"op"=>"replace", "path"=>"/name", "value"=>"New name"}, "1"=>{"op"=>"replace", "path"=>"/scope", "value"=>["sp:scopes:all"]}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"id":"86f1dc6fe8f54414950454cbb11278fa","name":"NodeJS Integration","scope":["demo:personal-access-token-scope:first","demo:personal-access-token-scope:second"],"owner":{"type":"IDENTITY","id":"2c9180a46faadee4016fb4e018c20639","name":"Support"},"created":"2017-07-11T18:45:37.098Z","lastUsed":"2017-07-11T18:45:37.098Z","managed":false}