Create a draft schema version
POST/api/v0/event-definitions/:action/schema-versions/
Store a document as a new draft at the next version number; numbers are never reused. A draft validates nothing until it is published. To change a published version, create a draft from its document with your edit applied. Requires the manage scope on a key that is not limited to named trails.
Request
Responses
- 201
- 400
- 403
- 404
- 409
The new draft.
Response Headers
ETag
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.
No EventDefinition has that id, or it belongs to another team.
Another request created a version at the same moment; send the request again.