Skip to content

Resume a paused function schedule

POST
/api/v1/projects/{id}/functions/{functionId}/schedule/resume
curl --request POST \
--url https://api.deploybase.eu/api/v1/api/v1/projects/example/functions/example/schedule/resume \
--header 'Authorization: <Authorization>'

Lifts a schedule paused after repeated failures (DEP-247): the failure window moves to now, so earlier failures stop counting, and the next run is recomputed from now. A schedule that is not paused is returned unchanged. A schedule paused by the plan’s limits cannot be resumed here (409 SCHEDULE_PAUSED_BY_PLAN); it resumes on its own once the plan allows it. The plan’s limits are checked after the resume: a schedule the plan no longer allows (after a downgrade) is answered 200 with the schedule paused again, pause_reason plan_limit.

id
required
string

Project ID

functionId
required
string

Function ID

OK

Media type application/json
object
data
meta
object
request_id
string
timestamp
string
trace_id
string
data
object
consecutive_failures

ConsecutiveFailures is derived, not stored: the newest consecutive failures among the last 10 terminal scheduled runs since the failure window last moved (a deploy of changed code or a resume). 10 pauses the schedule.

integer
cron
string
jitter_seconds
integer
last_error
string
last_run_at
string
last_skip_reason
string
Allowed values: overlap missed concurrency_limit team_suspended
last_skipped_at
string
next_runs

NextRuns are the next fire times (slot plus jitter), RFC 3339 UTC. While paused, they are the times a resume right now would lead to.

Array<string>
pause_reason
string
Allowed values: repeated_failures plan_limit
paused_at
string
plan_max_schedules
integer
plan_min_interval_seconds

The plan’s schedule limits. Null when the plan could not be resolved.

integer
skipped_count
integer

Example

{
"data": {
"cron": "0 * * * *",
"jitter_seconds": 17,
"last_skip_reason": "overlap",
"next_runs": [
"2026-10-02T13:00:17Z"
],
"pause_reason": "repeated_failures"
}
}

Bad Request

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Example generated

{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Unauthorized

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Example generated

{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Viewer role, or the team is suspended

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Example generated

{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Function not found, or it has no active schedule

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Example generated

{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

SCHEDULE_PAUSED_BY_PLAN

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Example generated

{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Internal Server Error

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Example generated

{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Live 174db30c built