Create publish rules
POST https://{{base_url}}/v3/workflows/publishing_rules
The Create Publish Rules request allows you to create publish rules for the workflow of a stack.
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 Create 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_uids"], "roles"=>["role_uids"]}, "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 |