Skip to main content
POST
Supersede a draft with a corrected draft

Authorizations

Authorization
string
header
required

MeshQu API key passed as a bearer token: Authorization: Bearer mqu_…. Mint one in the console (Settings → API keys).

X-MeshQu-Tenant-Id
string
header
required

Tenant UUID for multi-tenant isolation. Required on authenticated routes. A missing or non-UUID value returns 400 MISSING_TENANT_ID or INVALID_TENANT_ID before API-key authentication.

Path Parameters

id
string<uuid>
required
version
integer
required
Required range: x >= 1

Body

application/json
expected_revision
integer
required

The draft_revision of the draft being superseded, as last read. A stale value is refused 409 STALE_DRAFT_REVISION.

Required range: x >= 0
rules
object[]
required
Minimum array length: 1
change_reason
string
Maximum string length: 500
codification
object

Optional. When provided, MeshQu stores the rules produced from the codification input. Their source_ref is derived from the declared clause rather than taken from the caller.

Response

Default Response

replaced
object
required

The closed version, rules omitted (unchanged; GET the version to read them).

draft
object
required