Update publish rules
PUT https://{{base_url}}/v3/workflows/publishing_rules/{{rule_uid}}
The Update Publish Rules request allows you to add a publish rule or update the details of the existing publish rules of a workflow.
To configure the permissions for your application via OAuth, please include the cm.workflows.publishing-rules:write scope.
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 publish rules API Reference document
Request Body
{"publishing_rule"=>{"workflow"=>"workflow_uid", "branches"=>["main", "development"], "content_types"=>["$all"], "locales"=>["en-us"], "environment"=>"environment_uid", "approvers"=>{"users"=>["user_uid"], "roles"=>["role_uid"]}, "workflow_stage"=>"workflow_stage_uid", "disable_approver_publishing"=>false}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
api_key | string | ||
authtoken | string | ||
authorization | string | For this call we recommend you to use management token. | |
Content-Type | string | Enter "application/json" to pass a request body. |