Skip to main content
POST
Publish a draft as one model version. dry_run runs every gate and writes nothing.

Authorizations

Authorization
string
header
required

An API key issued with object_model scopes: Authorization: Bearer sk_…. The scopes: object_model:records:read, object_model:records:write, object_model:facts:read, object_model:facts:write, object_model:model:read, object_model:model:configure, object_model:actions:run, object_model:changes:read. An operation's security lists the scopes it needs; several entries mean any one of them will do. A person field (ref(user), ref_list(user)) holds a user id: look people up by email or id with GET /v1/users, outside this API, with a key that also has users:read.

Scopes

object_model:model:configure

Headers

Idempotency-Key
string
required

Required on every write: one key per logical write, sent again unchanged on every retry. A finished request replays its answer for 24 hours; the same key on a different request is refused (409 idempotency_key_reused). A dry run (dry_run: true) needs none, and is not recorded under one it carries.

Required string length: 1 - 255
Pattern: ^[\x20-\x7E]+$

Path Parameters

draft_id
string
required

Body

application/json
confirm_plan_hash
string

As on a configure: the plan_hash of a claim-type migration plan the answer asked you to confirm.

draft_id
string

Named by the path: leave it out, or send the same id.

dry_run
boolean

Check the draft against the live model and every gate, and write nothing.

expected_revision

Publish only the draft revision you reviewed: if it was edited since, the publish is refused.

migration_spec_json
string

As on a configure: claim-type renames and splits as MigrationSpec JSON. Leave it out to publish what the draft declares.

note
string

Why the model changed, stored with the version it makes.

Response

Answered.

applied
boolean
conflicts
object[]
draft
object
drafts
object[]
migration_plan_json
string
plan_confirmation_required
boolean
problems
string[]
version
warnings
string[]