Skip to main content
POST
Publish a market draft

Authorizations

X-Ambient-Actor
string
header
required

Provisioned actor identifier.

X-Ambient-Timestamp
string
header
required

Current Unix timestamp in seconds, within the configured clock-skew window.

Authorization
string
header
required

Ambient-HMAC followed by a space and the unpadded base64url HMAC-SHA256 signature. See Authentication and authority for the canonical input.

Path Parameters

marketId
string
required

Client-selected market identifier.

Minimum string length: 1

Body

application/json
commandId
string
required

Actor-scoped idempotency key. Retry the identical command with the same value.

Minimum string length: 1
expectedVersion
integer<uint64>
required

Current draft version returned by Ambient.

Required range: x >= 1
principalId
string
required

Principal represented by the authenticated actor.

Minimum string length: 1
authorityRef
string

Required delegation identifier when the actor and principal differ. Omit for self-action.

Minimum string length: 1

Response

Market published.

market
object
required
events
object[]
required