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>f7dec417-7cb7-4159-899b-2fdaa74a031e</TaskId>
    <TaskId>ed0d1ee2-dbf4-4626-90bc-92cf5cb21463</TaskId>
    <TaskId>8a7d7d0e-8f30-4356-95a9-a4cdb6182c13</TaskId>
  </InternalTasksQueue>
</Request>

application/json, text/json

Sample:
{
  "CoreWorkerId": 1,
  "InternalTasksQueue": {
    "List": [
      "f7dec417-7cb7-4159-899b-2fdaa74a031e",
      "ed0d1ee2-dbf4-4626-90bc-92cf5cb21463",
      "8a7d7d0e-8f30-4356-95a9-a4cdb6182c13"
    ]
  }
}

Response Information

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

Response body formats

application/xml, text/xml

Sample:
<Response>
  <CapturedTaskId>6e259db0-33f4-41e3-bf42-dfb540e49504</CapturedTaskId>
</Response>

application/json, text/json

Sample:
{
  "CapturedTaskId": "6e259db0-33f4-41e3-bf42-dfb540e49504"
}