Run a scheduled function now
POST
/api/v1/projects/{id}/functions/{functionId}/schedule/run
const url = 'https://api.deploybase.eu/api/v1/api/v1/projects/example/functions/example/schedule/run';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/run \ --header 'Authorization: <Authorization>'Queues one run of a function’s schedule now, with trigger schedule_manual and the same request a cron slot gets (DEP-247). Allowed while the schedule is paused; the timetable is unchanged. Refused with 409 SCHEDULE_RUN_OVERLAP while a scheduled run (cron or manual) of the function is still running, and with 429 at the team’s concurrent-invocation cap. The run counts toward the auto-pause failure streak.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” id
required
string
Project ID
functionId
required
string
Function ID
Responses
Section titled “ Responses ”Accepted
Media type application/json
object
data
meta
object
request_id
string
timestamp
string
trace_id
string
data
object
invocation_id
string
Example generated
{ "data": { "invocation_id": "example" }, "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}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 ACCOUNT_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_RUN_OVERLAP
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" }}RATE_LIMIT_EXCEEDED: too many concurrent invocations
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