Create a workflow
POST https://{{base_url}}/v3/workflows
The Create a Workflow request allows you to create a Workflow.
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 a workflow API Reference document
Request Body
{"workflow"=>{"workflow_stages"=>[{"color"=>"#2196f3", "SYS_ACL"=>{"users"=>{"uids"=>["$all"]}}, "next_available_stages"=>["$all"], "allStages"=>true, "allUsers"=>true, "specificStages"=>false, "specificUsers"=>false, "entry_lock"=>"$none", "name"=>"Review"}, {"color"=>"#74ba76", "SYS_ACL"=>{"users"=>{"uids"=>["$all"]}}, "allStages"=>true, "allUsers"=>true, "specificStages"=>false, "specificUsers"=>false, "next_available_stages"=>["$all"], "entry_lock"=>"$none", "name"=>"Complete"}], "name"=>"Workflow", "enabled"=>true, "branches"=>["main", "development"], "content_types"=>["$all"]}}
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 |