Publish the current draft as a new immutable workflow version

Blocks with 400 if the compiled draft has validation errors, or if it has warnings the caller has not acknowledged -- warnings never block by themselves, but publishing an immutable version is where the author has to have seen them. The rejection lists the outstanding codes; send them back in acknowledged_warning_codes to proceed. Version numbering is monotonic per workflow; a call always pins the exact published version it started with.

post/v1/agents/{agent_id}/workflow/publish

Request

  • Base URL: https://api.skysay.ai
  • URL: https://api.skysay.ai/v1/agents/{agent_id}/workflow/publish
  • Auth: none declared

Path parameters

agent_idstring required

Request body

acknowledged_warning_codesstring[]

Warning codes the author has reviewed and accepted. Codes that are not currently raised are ignored.

base_revisioninteger

The draft revision this publish was reviewed against. The 409 body carries the current draft under 'current'. Omit to publish whatever the draft currently is.

Response

New published version

Changes

No recorded changes to this operation across all 1 revision of this API.