POST
/
tasks
/
batch-create

Authorizations

Authorization
string
headerrequired

The Mergent API uses API keys to authenticate requests. Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth. All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.

Body

application/json ยท object[]
name
string | null

The name of the task.

queue
string
default: defaultdeprecated

The name of the of the task queue.

request
object

The params for creating or updating a task request.

scheduled_for
string | null

The ISO 8601 timestamp for when the task is scheduled to be executed.

delay
string

A duration string containing numbers and a unit suffix of "s" for seconds, "m" for minutes, and "h" for hours. Examples: "5s"; "1.5h"; "2h45m" When both delay and scheduled_for are present, delay will be added to scheduled_for.

Response

201 - application/json
id
string
required

The unique ID for the task.

name
string | null

The name of the task.

queue
string
default: defaultrequireddeprecated

The name of the of the task queue.

status
enum<string>
required

The status of the task. Additional statuses may be added over time.

Available options:
queued,
working,
success,
failure
request
object
required

A task request.

scheduled_for
string | null

The ISO 8601 timestamp for when the task is scheduled to be executed.

created_at
string
required

The ISO 8601 timestamp representing when the task was created.