Skip to main content

Publish the draft as the next version

POST 

/v1/click/templates/:templateId/versions

Creates the next immutable version from the template draft. You decide the level (MAJOR, MINOR or PATCH) and give a reason; both are recorded next to the level the server suggested (see the preview). The first publish is 1.0.0 and must be a MAJOR. A MAJOR that follows an earlier version needs a re-acceptance gate. Answers 409 CLICK_NOTHING_CHANGED when the draft equals the latest version. Deployments serving the same major follow a published MINOR or PATCH automatically; a new major is adopted by moving a deployment.

Request​

Responses​

The published version

Response Headers
    X-Request-Id

    Correlation id for this request, returned on every response (success and error). Quote it when contacting support to pinpoint the exact request, and use it to correlate your own logs. It is the same 128-bit id as the trace-id segment of the traceparent header.

    traceparent

    W3C Trace Context identifier for this request, returned on every response. Send your own traceparent on a request to have it adopted, so a multi-call workflow shares one trace. Format: 00-<32-hex trace-id>-<16-hex span-id>-<2-hex flags>.