post /tasks/{taskId}/executions

Creates a new task execution.

Creates a new task execution to run the task specified by the taskId parameter.

Path parameters

taskId (required)
The ID of the task to execute.

Request body

config (optional)
TaskExecutionConfig The configuration settings for the task execution.

Return type

TaskExecutionResponse

Example data

Content-Type: application/json

{ "data" : { "result" : "result", "task" : "00000000-0000-0000-0000-000000000000", "created" : "2000-01-23T04:56:07.000+00:00", "lastUpdate" : "2000-01-23T04:56:07.000+00:00", "progress" : 0.8008282, "id" : "00000000-0000-0000-0000-000000000000", "completed" : "{}", "type" : "publish", "priority" : 6.0274563, "status" : "WaitingForRetry" } }

Responses

202
Accepted. The task execution has been queued.

400
One of the following errors has occurred:The request syntax is malformed.The specified ID is not a valid GUID.

403
The user is not authorized to create the task execution.

404
A task with the specified ID does not exist.