Update export schema
Atomically replaces a custom schema’s content with a new published version.
Increments version by 1. Any unpublished draft on the schema is discarded.
Use the draft workflow (POST /v1/export-schemas/{id}/draft →
PUT /v1/export-schemas/{id}/draft → POST /v1/export-schemas/{id}/publish) when
you want to iterate on changes before they take effect; use this endpoint when
you already have the final content ready.
Existing exports that referenced earlier versions of this schema are unaffected: each export snapshots the schema content at the time it was created.
Built-in schemas cannot be updated — the request returns 404 not_found.
Authorizations
Your API key. Get one from the dashboard at https://app.ticksupply.com/api-keys
Body
Body for replacing a schema's content. Used by atomic update (PUT /v1/export-schemas/{id}), and by draft create/update (POST / PUT /v1/export-schemas/{id}/draft). name and stream_category are immutable — they are set when the schema is first created and cannot be changed by these endpoints.
Response
Schema updated; new published version returned.
Export schema with the content of its latest published version. Returned by create and get-by-id. Exports that reference the schema by name or ID snapshot the latest published version at the time the export is created.