Skip to content

Create a Workflow Stage Change

Terminal window
https://mapi.storyblok.com/v1/spaces/:space_id/workflow_stage_changes

Create a workflow stage change. It is important to pass a story ID along with the object.

  • :space_id required number

    Numeric ID of a space

  • workflow_stage_change object

    An object containing the workflow stage ID along with Story ID

  • release_id number

    ID of the current release (can be requested with the from_release API parameter)

  • notify boolean

    Notify the assigned user when the workflow is assigned. Defaults to false.

  • comment object

    Comment object containing a message to notify the user about the workflow stage change.

  • assign object

    An assign object containing space_role_ids and user_ids is used to assign a story stage to specific users or roles.

curl "https://mapi.storyblok.com/v1/spaces/space_id/workflow_stage_changes/" \
-X POST \
-H "Authorization: YOUR_OAUTH_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"workflow_stage_change\":{\"story_id\":123,\"workflow_stage_id\":123}}"

You will receive a workflow stage change object as a response.