Resume a paused function schedule
const url = 'https://api.deploybase.eu/api/v1/api/v1/projects/example/functions/example/schedule/resume';const options = {method: 'POST', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Project ID
Function ID
Responses
Section titled “ Responses ”OK
object
object
object
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.
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.
The plan’s schedule limits. Null when the plan could not be resolved.
Example
{ "data": { "cron": "0 * * * *", "jitter_seconds": 17, "last_skip_reason": "overlap", "next_runs": [ "2026-10-02T13:00:17Z" ], "pause_reason": "repeated_failures" }}Bad Request
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Unauthorized
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Viewer role, or the team is suspended
object
object
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
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}SCHEDULE_PAUSED_BY_PLAN
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Internal Server Error
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Live 174db30c built