Skip to main content
POST
Create a conversion rule

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string

Retry-safe token for this create. The first request performed under a given key has its response kept for 24 hours; an identical retry returns that same response with Idempotent-Replay: true instead of creating a second resource. The record covers the request body, so reusing a key with different content is a new request rather than a replay. Ignored on a dry run, which creates nothing to be idempotent about.

Maximum string length: 255

Body

application/json
rule
object
required

Unknown fields are rejected rather than ignored: a misspelled field that was silently dropped would produce a rule that does not do what it was asked to do.

dry_run
boolean
default:false

Response

Nothing was written. The body describes the change that would have been made, including every effect beyond the row itself.

dry_run
boolean
required
applied
boolean
required

False on a dry run and on every error.

diff
object
required

The change, in full. A dry run returns the change it WOULD make; an applied write returns the change it DID make, in the same shape, so the two can be compared directly.

audit_id
string<uuid>

Present on an applied write. The handle POST /audit/{auditId}/undo takes.