Files
dashback/docs/api/routes/subagentschedule/_id.put.md
2026-10-17 02:59:35 +02:00

1.5 KiB

PUT /subagentschedule/{id}

Protected. Requires a valid session cookie (credentials: 'include').

Update subagent schedule

Updates an existing subagent schedule for the selected company.

Path parameters

Param Required Type Description
id yes integer Schedule ID

Body (JSON)

Field Required Type Description
prompt no string
cron no string
desc no string
skills no string
lastagentnote no string
max_itr no integer
lastrun_at no string
{
  "prompt": "…",
  "cron": "…",
  "desc": "…",
  "skills": "…",
  "lastagentnote": "…",
  "max_itr": 1,
  "lastrun_at": "…"
}

Signals

On success, emits SSE signal: subagentschedule (see GET /events).

Response 200

Updated subagent schedule

{
  "schedule": {
    "id": 1,
    "company_id": 1,
    "desc": "…",
    "prompt": "…",
    "skills": "…",
    "lastagentnote": "…",
    "max_itr": 1,
    "cron": "…",
    "created_at": "…",
    "lastrun_at": "…"
  }
}

Errors

Status Description
400 Invalid input or invalid cron expression — {"error":"…"}
401 Unauthorized — {"error":"…"}
403 Not authorized — {"error":"…"}
404 Subagent schedule not found — {"error":"…"}

Generated from @openapi JSDoc. Do not edit by hand — run npm run docs:api.