Change the workflow of a language variant
Move the specified variant to the specified workflow and workflow step. This is the same as updating the workflow in the UI.
- The workflow step of a published language variant cannot be changed. You need to unpublish or create a new version first.
- For publishing and scheduling, use the Publish endpoint to move the specified variant to the Published step.
- For unpublishing and archiving, use the Unpublish endpoint to move the specified variant to the Archived step.
The API follows the workflow transition limitations present in the UI. This means you can change the workflow step of the language variant only to the workflow steps you have permissions to.
Request Body
{"workflow_identifier"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "step_identifier"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Content-Type | string | ||
Accept | string |