v2
Enqueue an execution
PUT
/
executions
Authorization
Body
curl --request PUT \
--url https://api.defer.run/public/v2/executions \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"function_name": "createUser",
"function_arguments": [
{
"name": "John Doe",
"company": "ACME"
},
false
],
"metadata": [
{
"user-id": "ab4d517f-64cb-48b2-aaaa-3ba3bec2e437"
}
]
}'
{
"data": {
"id": "AAYR1m5T-trJR95j1BaiC_36IdTTLw",
"state": "created",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
function_name
string
requiredfunction_arguments
string[]
schedule_for
string
discard_after
string
metadata
object
Response
200 - application/json
data
object
Was this page helpful?
curl --request PUT \
--url https://api.defer.run/public/v2/executions \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"function_name": "createUser",
"function_arguments": [
{
"name": "John Doe",
"company": "ACME"
},
false
],
"metadata": [
{
"user-id": "ab4d517f-64cb-48b2-aaaa-3ba3bec2e437"
}
]
}'
{
"data": {
"id": "AAYR1m5T-trJR95j1BaiC_36IdTTLw",
"state": "created",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}