Create Routine
Create a routine for an agent in this company. `agent_id` and the optional `project_id` must belong to this company (404 `NOT_FOUND` otherwise). `cron` is stored as given and not validated or scheduled by this API. Publishes `routine.created`.
Create a routine for an agent in this company.
agent_id and the optional project_id must belong to this company (404
NOT_FOUND otherwise). cron is stored as given and not validated or
scheduled by this API. Publishes routine.created.
HTTPBearerAuthorizationBearer <token>company_id*Company Iduuidapplication/json- body
agent_id*Agent Iduuidcron*Cron1 <= length <= 100description?string|nullenabled?Enabledtrueproject_id?|nulltitle*Title1 <= length <= 200Successful Response
application/json- response
agent_id*Agent Iduuidcreated_at*|nullcron*Crondescription*string|nullenabled*Enabledid*Iduuidlast_run_at*|nullproject_id*|nulltitle*Titlecurl -X POST "https://example.com/api/companies/497f6eca-6276-4993-bfeb-53cbbbba6f08/routines" \ -H "Content-Type: application/json" \ -d '{ "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978", "cron": "string", "title": "string" }'{ "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978", "created_at": "2019-08-24T14:15:22Z", "cron": "string", "description": "string", "enabled": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "last_run_at": "2019-08-24T14:15:22Z", "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9", "title": "string"}List Routines GET
List the company's routines, oldest first. A routine pairs an agent with a cron schedule and a task template. Schedules are stored but not evaluated by this API; see the trigger endpoint.
Update Routine PATCH
Update a routine; only fields present in the body are changed. A new `agent_id` or `project_id` must belong to this company (404 `NOT_FOUND` otherwise). Publishes `routine.updated` when something changed.