Dry-run an agent YAML import and return the resolution plan
Dry-run an agent YAML import and return the resolution plan.
Personal access token scope: agents:write.
bearerAuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
Success
curl -X POST 'http://localhost:7091/api/import_agent/plan'Create a new agent POST
Create a new agent. JSON or multipart (multipart for an image). 201 {id, key, image, workflow_id (workflow agents)}. A workflow agent may send workflow_graph to create its workflow in the same request; a graph that fails validation is 400 {success: false, message, error, errors}. [Personal access token](/API/personal-access-tokens) scope: `agents:write`.
POST /api/import_agent POST
Import an agent from YAML: create a draft, or update the agent matched by id or slug. [Personal access token](/API/personal-access-tokens) scope: `agents:write`.