PATCH
/
executions
/
{execution-id}
/
schedule
curl --request PATCH \
  --url https://api.defer.run/public/v2/executions/{execution-id}/schedule \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "schedule_for": true
}'
{
  "data": {
    "id": "AAYR1m5T-trJR95j1BaiC_36IdTTLw",
    "state": "created",
    "function_name": "helloWorld",
    "function_id": "AAcRmz6-ICPpFZv5oK7_9vkIfDPssA",
    "scheduled_at": "2023-11-07T05:31:56Z",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

execution-id
string
required

The execution ID

Body

application/json
schedule_for
boolean

Response

200 - application/json
data
object