Skip to content

Update a Workflow Stage

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

This endpoint can be used to update a workflow stage using the numeric ID.

  • :space_id required number

    Numeric ID of a space

  • :workflow_id required number

    Numeric ID of the connected workflow. If empty while creating a new stage, then the stage is created in the default workflow.

curl "https://mapi.storyblok.com/v1/spaces/space_id/workflow_stages/18" \
-X PUT \
-H "Authorization: YOUR_OAUTH_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"workflow_stage\":{\"after_publish_id\":561398,\"allow_admin_change\":true,\"allow_admin_publish\":false,\"allow_all_stages\":false,\"allow_all_users\":false,\"allow_editor_change\":true,\"allow_publish\":true,\"color\":\"#fff\",\"is_default\":true,\"name\":\"an updated stage \",\"position\":2,\"space_role_ids\":[232323],\"user_ids\":[343434],\"workflow_stage_ids\":[561398]}}"