Update role

PUT https://{{base_url}}/v3/roles/{{role_uid}}

The Update role request lets you modify an existing role of your stack. However, the pre-existing system roles cannot be modified.

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 role API Reference document

Request Body

{"role"=>{"name"=>"Updated Regional Custom Role", "description"=>"", "rules"=>[{"module"=>"branch", "branches"=>["main"], "acl"=>{"read"=>true}}, {"module"=>"environment", "environments"=>["blt**************ad", "blt**************b4"], "acl"=>{"read"=>true}}, {"module"=>"locale", "locales"=>["blt**************46", "blt**************88"], "acl"=>{"read"=>true}}, {"module"=>"taxonomy", "taxonomies"=>["regions"], "terms"=>["regions.north_america", "regions.south_america"], "content_types"=>[{"uid"=>"$all", "acl"=>{"read"=>true, "sub_acl"=>{"read"=>true, "create"=>true, "update"=>true, "delete"=>true, "publish"=>true}}}], "acl"=>{"read"=>true, "sub_acl"=>{"read"=>true, "create"=>true, "update"=>true, "delete"=>true, "publish"=>true}}}, {"module"=>"content_type", "content_types"=>["marketing_blogs"], "acl"=>{"read"=>true, "sub_acl"=>{"read"=>true, "create"=>true, "update"=>true, "delete"=>true, "publish"=>true}}}], "uid"=>"blt**************09", "org_uid"=>"blt**************c6", "api_key"=>"blt**************af"}}

HEADERS

KeyDatatypeRequiredDescription
authtokenstringEnter your authtoken.
api_keystringEnter the API key of your stack
authorizationstringFor this call we recommend you to use management token.
Content-TypestringEnter "application/json" to pass a request body.