POST
/
public
/
v1
/
enqueue
curl \
  -X POST \
  -u :<access-token> \
  -d '{"name": "sayHello", "arguments": ["John Doe"], "metadata": { "foo": "bar" }}' \
  https://api.defer.run/public/v1/enqueue
{
  "id": "0ujtsYcgvSTl8PAuAdqWYSMnLOv"
}

Endpoint

POST https://api.defer.run/public/v1/enqueue

Request

Body Parameters

name
string
required

The name of the function.

arguments
array<any>

The arguments of the function.

scheduled_for
string

The datetime when the execution should be executed.

metadata
object

Metadata to add on the execution.

Response

Body

id
string
required

The ID of the execution.