Skip to main content
POST
cURL
Requires a Harness Runtime deployed with AgentKit CLI 0.54.0 and scheduled tasks enabled Resuming a paused task calculates the next occurrence from the current time and does not replay every occurrence missed during the pause. A one-time schedule with no future occurrence returns 422 when resumed from a paused state If a task was paused after an interrupted execution, inspect completed external actions before resuming to avoid duplicate effects

Authorizations

Authorization
string
header
required

Runtime access credential for a service-authenticated Harness, such as a Runtime API key; shared OAuth deployments do not support background scheduled tasks

Path Parameters

job_id
string
required

Task ID containing 32 lowercase hexadecimal characters

Pattern: ^[a-f0-9]{32}$

Response

Success

name
string
required

Task name, 1–128 characters

Required string length: 1 - 128
prompt
string
required

Message sent to the agent on each execution, 1–65536 characters

Required string length: 1 - 65536
schedule
Schedule · object
required

Trigger schedule

harness
CronjobHarnessPublicOverrides · object | null
required

Settings applied to each execution of this task; explicit fields override the deployed agent and omitted fields inherit it

enabled
boolean
required

Whether future scheduling is enabled

timeout_seconds
integer
required

Execution timeout in seconds; timeout records a failed execution without automatically retrying it

Required range: 1 <= x <= 10800
misfire_policy
enum<string>
required

latest runs the most recent missed occurrence; skip runs it only within the grace period. Neither policy replays every missed occurrence

Available options:
latest,
skip
misfire_grace_seconds
integer
required

Maximum lateness in seconds allowed by the skip policy

Required range: 0 <= x <= 86400
cronjob_id
string
required

Owning task ID

Pattern: ^[a-f0-9]{32}$
revision
integer
required

Task revision number

created_at
string<date-time>
required

Task creation time in UTC

updated_at
string<date-time>
required

Most recent task update time in UTC

next_run_at
string<date-time> | null
required

Next scheduled occurrence in UTC; null when no future occurrence remains

active
object | null
required

The queued or running execution, or an execution whose final result is still being persisted

last_run
object | null
required

Summary of the most recently persisted historical execution

Last modified on September 19, 2026