Specs

Publishes the draft as the next version and makes it the version new runs use. Nothing is published when the draft has errors (422) or when it has issues you have not acknowledged: the 422 lists them, and you retry with acknowledge_issues: true. Send expected_draft_revision to make sure you publish what you reviewed (409 otherwise). When runs are in flight the version is published and activation_pending is true until they finish. Publishing an unchanged draft returns the current version. Requires specs:write.

post/v1/specs/{id}/publish

Request

  • Base URL
    https://api.talonic.com
  • Auth
    HTTP bearer

Path parameters

id, string uuid required

Request body

SpecPublishRequest required
acknowledge_issues, boolean

Proceed over the issues a previous attempt listed.

expected_draft_revision, integer

The draft revision you reviewed; a mismatch is a 409.

Response

Published.

SpecPublishResult required
spec_id, string uuid
version, integer
content_hash, string
schema_id, string uuid nullable

The schema new runs use: pass it as spec_id to POST /v1/run, or as schema_id to POST /v1/pipelines.

active, boolean

New runs use this version now.

activation_pending, boolean

Published

issues, object[]
note, string nullable
links, object

Changes