v9

latestOpenAPI 3.0.0raw.githubusercontent.com2026-07-071292691.1 MB
state-machines

Set state machine as default

Promotes the state machine to the default for its entity type within the account, demoting the previous default atomically. Idempotent: promoting the current default is a successful no-op.

patch/api/v1/state-machines/{id}/default

Path parameters

idstring uuid required
Example:01920000-0000-7000-8000-000000000000

State machine identifier (UUID).

Response

State machine set as default.

idstring required
entity_type'ORDER' | 'FULFILLMENT_ORDER' required
codestring required
namestring required
activeboolean required
is_defaultboolean required
versionnumber required
created_atstring required
updated_atstring required