latestOpenAPI 3.1.02026-08-221163801019.2 KB

f0f28319e448

Organization

Create a service hierarchical state machine

Create a new state machine for the given organization. No default version for the state machine will be created, so one must later create a version for this state machine so it can be used in a service.

Permissions

This endpoint requires the following permissions:

  • Organization:CreateServiceHierarchicalStateMachine for the new service hierarchical state machine.
post/v1/{organization}/organization/service_hierarchical_state_machine

Path parameters

organizationstring required

Headers

x-mongo-cluster-namestring nullable

The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database.

The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database.

Sec-WebSocket-Protocolstring[]

Request body

state_machine_namestring required

Response

Succeeded.

idstring required

The ID of the newly created state machine.