POST api/Docflow/CreateDraft

Создание черновика

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

Параметры URI

Нет.

Параметры Body

Информация о черновике

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

Список файлов

Коллекция DraftFileModel

Нет.

AuthorityType

Направление ДО

AuthorityType

Нет.

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

application/json, text/json

Пример:
{
  "Files": [
    {
      "IsMain": true,
      "FileId": "fe7fdc05-6fb2-49f4-abed-5520da7b5a4e",
      "Content": "QEA=",
      "Filename": "sample string 3"
    },
    {
      "IsMain": true,
      "FileId": "fe7fdc05-6fb2-49f4-abed-5520da7b5a4e",
      "Content": "QEA=",
      "Filename": "sample string 3"
    }
  ],
  "AuthorityType": 0
}

application/xml, text/xml

Пример:
<DraftModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Referent.Api.Models">
  <AuthorityType>None</AuthorityType>
  <Files>
    <DraftFileModel>
      <Filename xmlns="http://schemas.datacontract.org/2004/07/Referent.Api.Core">sample string 3</Filename>
      <Content xmlns="http://schemas.datacontract.org/2004/07/Referent.Api.Core">QEA=</Content>
      <FileId xmlns="http://schemas.datacontract.org/2004/07/Referent.Api.Core">fe7fdc05-6fb2-49f4-abed-5520da7b5a4e</FileId>
      <IsMain>true</IsMain>
    </DraftFileModel>
    <DraftFileModel>
      <Filename xmlns="http://schemas.datacontract.org/2004/07/Referent.Api.Core">sample string 3</Filename>
      <Content xmlns="http://schemas.datacontract.org/2004/07/Referent.Api.Core">QEA=</Content>
      <FileId xmlns="http://schemas.datacontract.org/2004/07/Referent.Api.Core">fe7fdc05-6fb2-49f4-abed-5520da7b5a4e</FileId>
      <IsMain>true</IsMain>
    </DraftFileModel>
  </Files>
</DraftModel>

application/x-www-form-urlencoded

Пример:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'DraftModel'.

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

Описание ресурсов

Идентификатор черновика

globally unique identifier

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

application/json, text/json

Пример:
"d00f6a5e-2013-484d-a243-ec1b365f2421"

application/xml, text/xml

Пример:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">d00f6a5e-2013-484d-a243-ec1b365f2421</guid>