Skip to main content

Publish the latest saved agent spec

POST 

https://platform.docana.com/api/v1/agents/:agentId/publish/

Equivalent to the UI Publish action. Explicitly call after create or update to promote the latest linked draft. It resolves inline criteria and rejects invalid AgentSpec V2/template defects. applicationId is the recommended scope and must exactly match the agent. For backwards compatibility, callers that omit it use the active agent’s application and receive deprecation headers. Legacy artifactId must match the linked draft; version is only a stale-client hint.

Request

Responses

The published (or already published) version