Create a routine for an agent
POSThttps://platform.docana.com/api/v1/agents/:agentId/routines/
The routine needs at least one trigger: SCHEDULED (cron, at most every 5 minutes), API (on demand via POST /api/v1/agents/{agentId}/routines/{routineId}/run/) or DOCUMENT_EVENT (fires on document import). An enabled API trigger is added automatically when none is given, so every routine can be run on demand. Cloud Scheduler jobs are created for enabled scheduled triggers.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 500
The created routine
Invalid body
The API key or session is missing, expired, or malformed.
The caller is authenticated but not allowed to perform this operation.
A resource referenced by the path does not exist or is not visible to the caller.
Routine creation failure