POST api/v2/routingworkflows

Создать документооборот.

Информация о запросе

GET параметры

None.

Body параметры

Модель создания документооборота.

RoutingWorkflowCreate
НазваниеОписаниеТипДополнительная информация
TemplateId

Идентификатор шаблона.

integer

Нет.

Title

Тема.

string

Нет.

Participants

Список участников.

Массив RoutingWorkflowParticipantCreate

Нет.

DocumentGroups

Список групп.

Массив RoutingWorkflowDocumentGroupCreate

Нет.

Форматы запроса

application/json, text/json

Пример:
{
  "TemplateId": 1,
  "Title": "sample string 2",
  "Participants": [
    {
      "DocflowUserId": "sample string 1",
      "TemplateParticipantId": "sample string 2"
    },
    {
      "DocflowUserId": "sample string 1",
      "TemplateParticipantId": "sample string 2"
    }
  ],
  "DocumentGroups": [
    {
      "TemplateGroupId": "sample string 1",
      "Documents": [
        {
          "TemplateDocumentId": "sample string 1",
          "Description": "sample string 2",
          "FileName": "sample string 3",
          "ShelfId": "17b1b219-72fa-402b-983e-77053c2e3f7a"
        },
        {
          "TemplateDocumentId": "sample string 1",
          "Description": "sample string 2",
          "FileName": "sample string 3",
          "ShelfId": "17b1b219-72fa-402b-983e-77053c2e3f7a"
        }
      ]
    },
    {
      "TemplateGroupId": "sample string 1",
      "Documents": [
        {
          "TemplateDocumentId": "sample string 1",
          "Description": "sample string 2",
          "FileName": "sample string 3",
          "ShelfId": "17b1b219-72fa-402b-983e-77053c2e3f7a"
        },
        {
          "TemplateDocumentId": "sample string 1",
          "Description": "sample string 2",
          "FileName": "sample string 3",
          "ShelfId": "17b1b219-72fa-402b-983e-77053c2e3f7a"
        }
      ]
    }
  ]
}

application/xml, text/xml

Пример:
<RoutingWorkflowCreate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Taxnet.Transcrypt.Api20.Models.RoutingWorkflowCreateModels">
  <DocumentGroups>
    <RoutingWorkflowDocumentGroupCreate>
      <Documents>
        <RoutingWorkflowDocumentCreate>
          <Description>sample string 2</Description>
          <FileName>sample string 3</FileName>
          <ShelfId>17b1b219-72fa-402b-983e-77053c2e3f7a</ShelfId>
          <TemplateDocumentId>sample string 1</TemplateDocumentId>
        </RoutingWorkflowDocumentCreate>
        <RoutingWorkflowDocumentCreate>
          <Description>sample string 2</Description>
          <FileName>sample string 3</FileName>
          <ShelfId>17b1b219-72fa-402b-983e-77053c2e3f7a</ShelfId>
          <TemplateDocumentId>sample string 1</TemplateDocumentId>
        </RoutingWorkflowDocumentCreate>
      </Documents>
      <TemplateGroupId>sample string 1</TemplateGroupId>
    </RoutingWorkflowDocumentGroupCreate>
    <RoutingWorkflowDocumentGroupCreate>
      <Documents>
        <RoutingWorkflowDocumentCreate>
          <Description>sample string 2</Description>
          <FileName>sample string 3</FileName>
          <ShelfId>17b1b219-72fa-402b-983e-77053c2e3f7a</ShelfId>
          <TemplateDocumentId>sample string 1</TemplateDocumentId>
        </RoutingWorkflowDocumentCreate>
        <RoutingWorkflowDocumentCreate>
          <Description>sample string 2</Description>
          <FileName>sample string 3</FileName>
          <ShelfId>17b1b219-72fa-402b-983e-77053c2e3f7a</ShelfId>
          <TemplateDocumentId>sample string 1</TemplateDocumentId>
        </RoutingWorkflowDocumentCreate>
      </Documents>
      <TemplateGroupId>sample string 1</TemplateGroupId>
    </RoutingWorkflowDocumentGroupCreate>
  </DocumentGroups>
  <Participants>
    <RoutingWorkflowParticipantCreate>
      <DocflowUserId>sample string 1</DocflowUserId>
      <TemplateParticipantId>sample string 2</TemplateParticipantId>
    </RoutingWorkflowParticipantCreate>
    <RoutingWorkflowParticipantCreate>
      <DocflowUserId>sample string 1</DocflowUserId>
      <TemplateParticipantId>sample string 2</TemplateParticipantId>
    </RoutingWorkflowParticipantCreate>
  </Participants>
  <TemplateId>1</TemplateId>
  <Title>sample string 2</Title>
</RoutingWorkflowCreate>

Информация об ответе

Информация о ресурсах

Идентификатор документооборота.

globally unique identifier

Форматы ответа

application/json, text/json

Пример:
"6738c8d6-dc71-4711-a947-88afe20b205c"

application/xml, text/xml

Пример:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">6738c8d6-dc71-4711-a947-88afe20b205c</guid>