Import an agent bundle
POSThttps://platform.docana.com/api/v1/agents/import/
Imports an exported agent bundle (root agent plus sub-agents) into an application. The body is NOT a bare AgentSpec: to import a spec you authored, wrap it as { "exportVersion": 1, "agent": { "name": "<name>", "spec": <AgentSpec> } }. Accepts application/json or multipart/form-data with a file field. applicationId comes from the payload or the query string.
Request
Responses
- 200
- 400
- 401
- 403
- 500
Import summary with the created root agent id
Invalid payload, missing applicationId or cyclic dependencies
The API key or session is missing, expired, or malformed.
The caller is authenticated but not allowed to perform this operation.
Import failed