POST api_v2/CoreWorkerTasksQueue/CaptureTaskFromQueue

Захватить задачу из очереди

Request Information

Parameters

NameDescriptionAdditional information
captureTaskRequestDto
Тело запроса на захват задачи

Define this parameter in the request body.

Request body formats

application/xml, text/xml

Sample:
<Request>
  <CoreWorkerId>1</CoreWorkerId>
  <InternalTasksQueue>
    <TaskId>9c31c3cb-b7c3-4feb-a10e-0b94a5444ca1</TaskId>
    <TaskId>61c8db7c-ab74-4199-b017-5bfb39afcc25</TaskId>
    <TaskId>46380a37-6899-4297-8fe5-2d7686127fb5</TaskId>
  </InternalTasksQueue>
</Request>

application/json, text/json

Sample:
{
  "CoreWorkerId": 1,
  "InternalTasksQueue": {
    "List": [
      "9c31c3cb-b7c3-4feb-a10e-0b94a5444ca1",
      "61c8db7c-ab74-4199-b017-5bfb39afcc25",
      "46380a37-6899-4297-8fe5-2d7686127fb5"
    ]
  }
}

Response Information

ID задачи из очереди

Response body formats

application/xml, text/xml

Sample:
<Response>
  <CapturedTaskId>bfbe6c7d-c163-4368-af2a-7a40bfb27b66</CapturedTaskId>
</Response>

application/json, text/json

Sample:
{
  "CapturedTaskId": "bfbe6c7d-c163-4368-af2a-7a40bfb27b66"
}