Skip to content

Mark a workspace workflow state as default ​

POST/api/v2/workspaces/{slug}/workflows/{workflow_id}/states/{state_id}/mark-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: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 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: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: allow_issue_creation, id, is_default, sequence, state_id, type, updated_at, workflow_id.

See Sparse fields.

Scopes ​

workspaces.workflows:write

Errors ​

StatusCodeCause
400invalid_requestThe request body or a query parameter failed validation.
401unauthorizedMissing or invalid credentials.
402payment_requiredThe Workflows 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 the state isn't in its chain.
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.
Mark a workspace workflow state as default
bash
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"
Response200
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"
}