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 scope: agents:write.
bearerheader
AuthorizationBearer <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'Example Response200
Empty
Dry-run an agent YAML import and return the resolution plan POST
Dry-run an agent YAML import and return the resolution plan. [Personal access token](/API/personal-access-tokens) scope: `agents:write`.
Pin or unpin an agent POST
Pin or unpin an agent. [Personal access token](/API/personal-access-tokens) scope: `agents:write`.