Skip to main content

Update the return policy of a state

PATCH 

/api/state-machines/:id/states/:stateId/return-policy

Replaces the return policy of a single state: the states it may be returned to, allowed return types, reason codes and required form-field changes. Send returnPolicy: null to clear the policy.

Request​

Responses​

The state machine with the updated return policy; the body is the standard { message, response } envelope, response holds the definition