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
- 200
- 400
- 403
- 404
- 409
- 412
The draft as it now stands.
Response Headers
A validator for this version; it changes whenever the version does. Send it back as If-Match.
The document was refused: it is not a JSON object, is too large, is not a valid JSON Schema 2020-12 document, has a remote $ref, or the body is not JSON.
Missing, invalid or under-scoped API key.
The action is not defined for this team, or it has no such schema version.
The version is published, so it is immutable.
If-Match no longer matches: the draft changed since you read it.