Skip to main content

Replace a draft's document

PUT 

/api/v0/event-definitions/:action/schema-versions/:version/

Replace the whole document of a draft in place; the version number does not change. This is how fields are added, renamed and removed: read the draft, edit its properties and required, and send the document back. Send the ETag you read as If-Match so a concurrent edit is not overwritten. A published version cannot be changed. Requires the manage scope on a key that is not limited to named trails.

Request​

Responses​

The draft as it now stands.

Response Headers
    ETag

    A validator for this version; it changes whenever the version does. Send it back as If-Match.