patch /tasks/{taskId}/executions/{id}

Aborts the specified task execution by setting the status to "aborted".

Stops the task specified by the taskId and id parameters.

Path parameters

taskId (required)
The ID of the task.
id (required)
The ID of the execution of the task.

Request body

status (required)
TaskExecutionStatusPatch The status patch.

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

200
Success. The specified task execution object is returned.

400
The specified ID is not a valid GUID or the patch body is malformed. Currently, only patching the status to "aborted" is supported.

403
The user is not authorized to abort the specified task.

404
One of the following errors has occurred:A task execution with the specified ID does not exist.A task with the specified ID does not exist.