Mark a workspace workflow state as default
Make this chain state the one new work items land in when no state is given. A workflow has at most one default, so the call clears the flag on the previous default. It also sets allow_issue_creation to true on the new default, because new work items must be creatable there.
This is a bodyless POST. The response is the updated chain entry.
Path Parameters
slug:requiredstringThe 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 whose chain you are working with.
state_id:requiredstring (uuid)The catalog state id, not the chain entry's own id. A state that isn't in this workflow's chain returns 404.
Body Parameters
None. The endpoint takes no request body and ignores anything you send.
Response shaping
fields:optionalstringComma-separated list of fields to return. Unrequested keys are omitted from the response, not returned as null, so absent means "not requested" and null means "actually null". id always comes back whether or not you name it.
Pass all for every requestable field. An unknown name is a 400 that lists the valid set and suggests the closest match, so a typo can't silently cost you the saving.
Requestable here: allow_issue_creation, id, is_default, sequence, state_id, type, updated_at, workflow_id.
See Sparse fields.
Scopes
workspaces.workflows:write
Errors
| Status | Code | Cause |
|---|---|---|
400 | invalid_request | The request body or a query parameter failed validation. |
401 | unauthorized | Missing or invalid credentials. |
402 | payment_required | Workflows isn't on your plan, or is switched off. |
403 | forbidden | Your role or token scope can't edit workspace workflows. |
404 | not_found | No such workflow in this workspace's catalog, or the state isn't in its chain. |
406 | not_acceptable | The Accept header asks for a representation the API can't produce. |
409 | governance_migration_in_progress | A governance migration is running in this workspace, so writes are paused. Retry after it finishes. |
409 | states_managed_at_project | The workspace doesn't have governance turned on. Use the project's workflows instead. |
413 | payload_too_large | The request body is over the size limit. |
415 | unsupported_media_type | The Content-Type isn't one this endpoint accepts. |
429 | rate_limited | Throttled. Honor the Retry-After header before retrying. |
curl -X POST \
"https://api.plane.so/api/v2/workspaces/my-team/workflows/9c1f0b3d-6d2e-4c9a-8b41-2f7e5a0d6c88/states/f960d3c2-8524-4a41-b8eb-055ce4be2a7f/mark-default/" \
-H "X-Api-Key: $PLANE_API_KEY"import requests
response = requests.post(
"https://api.plane.so/api/v2/workspaces/my-team/workflows/9c1f0b3d-6d2e-4c9a-8b41-2f7e5a0d6c88/states/f960d3c2-8524-4a41-b8eb-055ce4be2a7f/mark-default/",
headers={"X-Api-Key": "your-api-key"},
)
print(response.json())const response = await fetch(
"https://api.plane.so/api/v2/workspaces/my-team/workflows/9c1f0b3d-6d2e-4c9a-8b41-2f7e5a0d6c88/states/f960d3c2-8524-4a41-b8eb-055ce4be2a7f/mark-default/",
{
method: "POST",
headers: {
"X-Api-Key": "your-api-key",
},
},
);
const data = await response.json();{
"id": "0e6b4d82-1c9a-4f53-b7e2-9a3d5f8c6e10",
"state_id": "f960d3c2-8524-4a41-b8eb-055ce4be2a7f",
"workflow_id": "9c1f0b3d-6d2e-4c9a-8b41-2f7e5a0d6c88",
"type": "transition",
"is_default": true,
"allow_issue_creation": true,
"sequence": 20000.0,
"updated_at": "2026-02-03T16:45:12.904117Z"
}
