POST api/v2/draftgroup

Создание группы черновиков

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

GET параметры

None.

Body параметры

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

Автосохранение группы черновиков

boolean

Нет.

ReceiverId

Идентификатор получателя

string

Нет.

ReceiverDepartmentId

Идентификатр подразделения получателя

globally unique identifier

Нет.

Drafts

Список черновиков

Массив CreateDraftModel

Нет.

Authorities

Полномочия отправителя

DraftAuthorities

Нет.

RemoveReceiver

Удалить получателя

boolean

Нет.

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

application/json, text/json

Пример:
{
  "IsAutoSaved": true,
  "ReceiverId": "sample string 1",
  "ReceiverDepartmentId": "be887695-b210-4cb8-b3ff-a2d9f76a581c",
  "Drafts": [
    {
      "GroupId": "da2daf8b-aefb-4c7c-9b81-a90cb31fc486",
      "ShelfId": "9d6856fa-e2f7-4314-88aa-2f07b4efe8ca",
      "Filename": "sample string 2",
      "NeedSign": true,
      "IsImportant": true,
      "UnformalizedDocumentType": "sample string 4",
      "Comment": "sample string 5",
      "Signatures": [
        "QEA=",
        "QEA="
      ],
      "Department": {
        "Id": "82a478fb-4e68-43b4-868f-5d904d7c5fcb"
      }
    },
    {
      "GroupId": "da2daf8b-aefb-4c7c-9b81-a90cb31fc486",
      "ShelfId": "9d6856fa-e2f7-4314-88aa-2f07b4efe8ca",
      "Filename": "sample string 2",
      "NeedSign": true,
      "IsImportant": true,
      "UnformalizedDocumentType": "sample string 4",
      "Comment": "sample string 5",
      "Signatures": [
        "QEA=",
        "QEA="
      ],
      "Department": {
        "Id": "82a478fb-4e68-43b4-868f-5d904d7c5fcb"
      }
    }
  ],
  "Authorities": {
    "Area": 1,
    "Status": 2,
    "OtherInformation": "sample string 3",
    "StateRegistrationCertificate": "sample string 4",
    "Post": "sample string 5",
    "BasisForEmployee": "sample string 6",
    "BasisForOrganization": "sample string 7"
  },
  "RemoveReceiver": true
}

application/xml, text/xml

Пример:
<CreateDraftGroupModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Taxnet.Transcrypt.Api20.Models">
  <Authorities>
    <Area>1</Area>
    <BasisForEmployee>sample string 6</BasisForEmployee>
    <BasisForOrganization>sample string 7</BasisForOrganization>
    <OtherInformation>sample string 3</OtherInformation>
    <Post>sample string 5</Post>
    <StateRegistrationCertificate>sample string 4</StateRegistrationCertificate>
    <Status>2</Status>
  </Authorities>
  <Drafts>
    <CreateDraftGroupModel.CreateDraftModel>
      <Comment>sample string 5</Comment>
      <Department>
        <Id>82a478fb-4e68-43b4-868f-5d904d7c5fcb</Id>
      </Department>
      <Filename>sample string 2</Filename>
      <GroupId>da2daf8b-aefb-4c7c-9b81-a90cb31fc486</GroupId>
      <IsImportant>true</IsImportant>
      <NeedSign>true</NeedSign>
      <ShelfId>9d6856fa-e2f7-4314-88aa-2f07b4efe8ca</ShelfId>
      <Signatures xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:base64Binary>QEA=</d4p1:base64Binary>
        <d4p1:base64Binary>QEA=</d4p1:base64Binary>
      </Signatures>
      <UnformalizedDocumentType>sample string 4</UnformalizedDocumentType>
    </CreateDraftGroupModel.CreateDraftModel>
    <CreateDraftGroupModel.CreateDraftModel>
      <Comment>sample string 5</Comment>
      <Department>
        <Id>82a478fb-4e68-43b4-868f-5d904d7c5fcb</Id>
      </Department>
      <Filename>sample string 2</Filename>
      <GroupId>da2daf8b-aefb-4c7c-9b81-a90cb31fc486</GroupId>
      <IsImportant>true</IsImportant>
      <NeedSign>true</NeedSign>
      <ShelfId>9d6856fa-e2f7-4314-88aa-2f07b4efe8ca</ShelfId>
      <Signatures xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:base64Binary>QEA=</d4p1:base64Binary>
        <d4p1:base64Binary>QEA=</d4p1:base64Binary>
      </Signatures>
      <UnformalizedDocumentType>sample string 4</UnformalizedDocumentType>
    </CreateDraftGroupModel.CreateDraftModel>
  </Drafts>
  <IsAutoSaved>true</IsAutoSaved>
  <ReceiverDepartmentId>be887695-b210-4cb8-b3ff-a2d9f76a581c</ReceiverDepartmentId>
  <ReceiverId>sample string 1</ReceiverId>
  <RemoveReceiver>true</RemoveReceiver>
</CreateDraftGroupModel>

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 'CreateDraftGroupModel'.

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

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

Идентификатор созданной группы черновиков

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

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

globally unique identifier

Нет.

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

application/json, text/json

Пример:
{
  "Id": "aacb1b19-cc66-43e2-8ab7-2817541f6d31"
}

application/xml, text/xml

Пример:
<CreateSucceedModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Taxnet.Transcrypt.Api20.Models">
  <Id>aacb1b19-cc66-43e2-8ab7-2817541f6d31</Id>
</CreateSucceedModel>