Skip to main content
PATCH
/
api
/
cron-jobs
/
{id}
Update cron job
curl --request PATCH \
  --url https://sontairo.com/api/cron-jobs/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "agentId": "<string>",
  "schedule": "<string>",
  "prompt": "<string>",
  "timezone": "<string>",
  "isActive": true
}
'
{
  "data": {
    "id": "<string>",
    "workspaceId": "<string>",
    "projectId": "<string>",
    "name": "<string>",
    "description": "<string>",
    "schedule": "<string>",
    "prompt": "<string>",
    "timezone": "<string>",
    "isActive": true,
    "agentId": "<string>",
    "agent": {
      "id": "<string>",
      "name": "<string>"
    },
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Path Parameters

id
string
required

Query Parameters

workspaceId
string
required
projectId
string

Body

application/json
name
string
Required string length: 1 - 100
description
string | null
Maximum string length: 500
agentId
string | null
schedule
string
Required string length: 1 - 100
prompt
string
Required string length: 1 - 10000
timezone
string
Maximum string length: 50
isActive
boolean

Response

Cron job updated

data
object