Update a workflow
PUT https://manage.kontent.ai/v2/projects/:environment_id/workflows/:workflow_identifier
Update an existing workflow, manage its scope, workflow steps and their transitions, and role permissions. Always make sure that all steps eventually transition to the Published step.
When removing a workflow step, make sure the step is not in use. You can't remove a used workflow step.
Request Body
{"name"=>"<string>", "steps"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "scopes"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "published_step"=>{"id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "codename"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "unpublish_role_ids"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "create_new_version_role_ids"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "archived_step"=>{"id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "codename"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "role_ids"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "codename"=>"<string>"}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"name":"My workflow","steps":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"scopes":[{"content_types":[{},{}],"collections":[{},{}]}],"published_step":{"id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"codename":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"unpublish_role_ids":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"create_new_version_role_ids":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"archived_step":{"id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"codename":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"role_ids":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"id":"8e38928b-50b6-4e9e-ab53-af35d6fcfcb8","codename":"my_workflow","scheduled_step":{"id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"codename":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}}