Skip to content

Update a workspace workflow transition ​

PATCH/api/v2/workspaces/{slug}/workflows/{workflow_id}/state-transitions/{pk}/

Retarget a transition or change its approval settings. The source state can't change, and Plane ignores state_id in the body. To move a transition to another source, delete it and create a new one.

PATCH is partial. Send only the fields you want to change.

When the source state's type is approval, every update needs the Workflow approvals plan feature, whatever fields you send. Without it, the request returns 402.

Path parameters ​

slug:requiredstring

The workspace slug. It appears in your Plane URLs. In https://app.plane.so/my-team/projects/, the slug is my-team.

workflow_id:requiredstring (uuid)

The catalog workflow the transitions belong to.

pk:requiredstring (uuid)

The id of the transition.

Body parameters ​

transition_state_id:optionalstring (uuid)

Catalog state id of the target. It must be in the workflow's chain, or the request returns 400. Plane doesn't check whether the source already has a transition to this target, so a retarget can leave two transitions for the same pair. Nullable.

rejection_state_id:optionalstring (uuid)

For a transition out of an approval state, the catalog state a rejected work item moves to. It must be in the workflow's chain, or the request returns 400. Nullable.

required_approvals:optionalinteger

How many approvals the move needs. null means every approver must approve. Nullable.

member_ids:optionalarray of string (uuid)

User ids of the approvers. The list replaces the current approvers. Plane removes the ids you leave out, and [] removes every approver. Each id must be an active member of the workspace. Omit the field to keep the approvers as they are.

Response shaping ​

fields:optionalstring

Comma-separated list of fields to return. Fields you don't request are left out of the response instead of coming back as null, so a missing key means you didn't ask for it and null means the value is null. id is always included, whether or not you name it.

Pass all to get every requestable field. An unknown field name returns 400 with the list of valid names and the closest match, so a typo is caught instead of being silently ignored.

Requestable here: created_at, id, member_ids, rejection_state_id, required_approvals, transition_state_id, updated_at, workflow_state_id.

See Sparse fields.

Scopes ​

workspaces.workflows:write

Errors ​

StatusCodeCause
400invalid_requestA target or rejection state isn't in the chain, an approver isn't an active workspace member, or a field failed validation.
401unauthorizedMissing or invalid credentials.
402payment_requiredThe Workflows feature isn't on your plan, or is turned off.
402payment_requiredThe source is an approval state, and the Workflow approvals feature isn't on your plan or is turned off.
403forbiddenYour role or token scope can't edit workspace workflows.
404not_foundNo such workflow in this workspace's catalog, or no such transition in it.
406not_acceptableThe Accept header asks for a representation the API can't produce.
409governance_migration_in_progressA governance migration is running in this workspace, so writes are paused. Retry after it finishes.
409states_managed_at_projectThe workspace doesn't have governance turned on. Use the project's workflows instead.
413payload_too_largeThe request body is over the size limit.
415unsupported_media_typeThe Content-Type isn't one this endpoint accepts.
429rate_limitedThrottled. Honor the Retry-After header before retrying.
Update a workspace workflow transition
bash
curl -X PATCH \
  "https://api.plane.so/api/v2/workspaces/my-team/workflows/9c1f0b3d-6d2e-4c9a-8b41-2f7e5a0d6c88/state-transitions/4b6e1d93-2a7f-4c58-9e30-1d8b5f7a2c46/" \
  -H "X-Api-Key: $PLANE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "member_ids": [
    "a3f92c71-6e4b-4d08-9b5a-1c7e3d9f2b84",
    "16c61a3a-512a-48ac-b0be-b6b46fe6f430"
  ],
  "required_approvals": 2
}'
Response200
json
{
  "id": "4b6e1d93-2a7f-4c58-9e30-1d8b5f7a2c46",
  "workflow_state_id": "c48f1a6d-2e7b-4d95-8c03-6b1e9f2a7d54",
  "transition_state_id": "7b1e9d40-3c86-4f2a-9a5d-8e2b0c47d613",
  "rejection_state_id": "f960d3c2-8524-4a41-b8eb-055ce4be2a7f",
  "required_approvals": 2,
  "member_ids": ["a3f92c71-6e4b-4d08-9b5a-1c7e3d9f2b84", "16c61a3a-512a-48ac-b0be-b6b46fe6f430"],
  "created_at": "2026-01-15T11:04:52.660219Z",
  "updated_at": "2026-02-03T16:45:12.904117Z"
}
Response400
json
{
  "type": "invalid_request",
  "code": "invalid_request",
  "detail": "Approvers must be active workspace members."
}