PUT api/v2/draftgroup/{draftGroupId}

Обновление группы черновиков

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

GET параметры

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

globally unique identifier

Required

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": "b4e85a40-8feb-4421-ab42-0be368c12c69",
  "Drafts": [
    {
      "GroupId": "1f2d726c-c14b-45b1-8ccd-f655f9833c28",
      "ShelfId": "29803b02-d220-45d5-841f-cf0933f71177",
      "Filename": "sample string 2",
      "NeedSign": true,
      "IsImportant": true,
      "UnformalizedDocumentType": "sample string 4",
      "Comment": "sample string 5",
      "Signatures": [
        "QEA=",
        "QEA="
      ],
      "Department": {
        "Id": "fadc785f-1804-406c-b39f-1d882089d172"
      }
    },
    {
      "GroupId": "1f2d726c-c14b-45b1-8ccd-f655f9833c28",
      "ShelfId": "29803b02-d220-45d5-841f-cf0933f71177",
      "Filename": "sample string 2",
      "NeedSign": true,
      "IsImportant": true,
      "UnformalizedDocumentType": "sample string 4",
      "Comment": "sample string 5",
      "Signatures": [
        "QEA=",
        "QEA="
      ],
      "Department": {
        "Id": "fadc785f-1804-406c-b39f-1d882089d172"
      }
    }
  ],
  "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>fadc785f-1804-406c-b39f-1d882089d172</Id>
      </Department>
      <Filename>sample string 2</Filename>
      <GroupId>1f2d726c-c14b-45b1-8ccd-f655f9833c28</GroupId>
      <IsImportant>true</IsImportant>
      <NeedSign>true</NeedSign>
      <ShelfId>29803b02-d220-45d5-841f-cf0933f71177</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>fadc785f-1804-406c-b39f-1d882089d172</Id>
      </Department>
      <Filename>sample string 2</Filename>
      <GroupId>1f2d726c-c14b-45b1-8ccd-f655f9833c28</GroupId>
      <IsImportant>true</IsImportant>
      <NeedSign>true</NeedSign>
      <ShelfId>29803b02-d220-45d5-841f-cf0933f71177</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>b4e85a40-8feb-4421-ab42-0be368c12c69</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'.

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

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

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

Нет.