Update management token

PUT https://{{base_url}}/v3/stacks/management_tokens/{{token_uid}}

The Update management token request lets you update the details of a management token. You can change the name and description of the token; update the stack-level permissions assigned to the token; and change the expiry date of the token (if set).

To use the API Request, you will need to authenticate yourself either with a Management Token (highly recommended) or an Authtoken. 
Read more about it in Authentication.


For more information, refer to the Update management token API Reference document

Request Body

{"token"=>{"name"=>"Updated Test Token", "description"=>"This is an updated management token.", "scope"=>[{"module"=>"content_type", "acl"=>{"read"=>true, "write"=>true}}, {"module"=>"entry", "acl"=>{"read"=>true, "write"=>true}}, {"module"=>"branch", "branches"=>["main", "development"], "acl"=>{"read"=>true}}, {"module"=>"branch_alias", "branch_aliases"=>["deploy"], "acl"=>{"read"=>true}}], "expires_on"=>"2020-12-31", "is_email_notification_enabled"=>true}}

HEADERS

KeyDatatypeRequiredDescription
api_keystringEnter the API key of your stack.
authtokenstringEnter your authtoken.
Content-TypestringEnter "application/json" to pass a request body.