Schemas
Publish a schema
Publish the draft as an immutable schema version.
POST
Publish the working draft as an immutable StructVersion
Snapshots the draft into an immutable version and makes it available to batches and Apply schema. 422 if the draft violates a hard contract (field id, field cap for the mode, table with no columns).
An API key cannot satisfy the role gate on publish — call this as a signed-in user.
Authorizations
Organisation API key from Settings → API / /api/keys/. The secret is
shown once. Send Authorization: Bearer sk-abacus-…. One active key
per organisation. Ingest (/api/v2/ingest/*) refuses API keys — that
surface is Auth0-only with ingest:read / ingest:write scopes.
Path Parameters
Body
application/json
Body for POST /structs/{slug}/publish/.
Maximum string length:
500Response
Detail shape for a single StructVersion — adds full JSON bodies.
Required range:
0 <= x <= 2147483647Compact projection of the user who published / deprecated a version.
Compact projection of the user who published / deprecated a version.
Maximum string length:
500Maximum string length:
500
