Skip to main content
PUT
Update a scheduled task

Authorizations

Authorization
string
header
required

JWT token from Clerk authentication.

Must be from a user with org:admin role.

Query Parameters

taskId
integer
required

Body

application/json
name
string
Maximum string length: 100
description
string | null
prompt
string
schedule
string
Example:

"30 7 * * 2"

agentId
integer
enabled
boolean

Response

Task updated.

id
integer
Example:

42

name
string
Example:

"Weekly portfolio digest"

description
string | null
prompt
string
Example:

"Summarize any new documents added this week."

schedule
string

Cron expression (UTC).

Example:

"0 13 * * 1"

enabled
boolean
agentId
integer
Example:

123

agentName
string

Present on list/get responses.

Example:

"Portfolio Monitor"

userId
string
lastRunAt
string<date-time> | null
createdAt
string<date-time>
updatedAt
string<date-time>