Skip to main content

Create a new formation

POST 

/api/v1/formations

Validates the template, creates the formation record, then provisions all declared resources in dependency order.

A template-shape error is refused with 400. A deploy failure is not: the operation ran, so the formation is returned with 201 and status: "failed", and error explains why (the resources created before the failure are rolled back). Read status — a 2xx here means the deploy was attempted, not that it worked. The builtin CLI exits non-zero on that body so create-formation && … does not lie.

Request

Responses

Formation created