Publish the latest saved agent spec
POSThttps://platform.docana.com/api/v1/agents/:agentId/publish/
Promotes the most recently saved spec artifact to be the published version. Accepts an optional JSON body { name?, description? } with version metadata. Idempotent: republishing the already-live version answers alreadyPublished: true.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 422
- 500
The published (or already published) version
Agent is not associated with an application
The API key or session is missing, expired, or malformed.
The caller is authenticated but not allowed to perform this operation.
Agent not found
Agent has no saved spec artifact yet
The latest spec artifact is invalid (bad JSON or broken Handlebars templates)
Could not load the latest spec artifact