Skip to main content
PATCH
Edit the draft

Authorizations

Authorization
string
header
required

A workspace API key, sent as Authorization: Bearer sempera_sk_... Each operation names the one scope it needs. Scopes, key kinds and roles are in the Authentication guide.

Path Parameters

agent_id
string
required

The agent's stable id.

Body

application/json
fields
object
required

Field key -> new value. Keys are the editor's field keys (editable_fields).

expect_revision
string

Refuse the save if the draft moved on.

Response

OK

object
any
agent_id
string
revision
string | null
updated_at
string | null
by
string | null
fields
object
warnings
object[]

Advice about the draft's values as they stand, each naming its field (field, label, code, message). Never a refusal: the save and Publish go ahead. Today: an opening line that already says what Sempera adds after it (the AI disclosure, or the recording notice when calls are recorded), so callers would hear it twice.

summary
any
editable_fields
any
result
any