POST api/Send/AddSignsToDraftPfrDocflow

Добавление подписанных служебных файлов к документообороту ПФР перед отправкой

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

Параметры URI

Нет.

Параметры Body

Подписанные служебные файлы

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

Идентификатор ДО, для которого подписываются файлы

globally unique identifier

Нет.

Files

Подписанные файлы

Коллекция SignedPreparedFile

Нет.

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

application/json, text/json

Пример:
{
  "DocflowId": "99c2be80-96ae-481f-b973-e71629dae019",
  "Files": [
    {
      "Signatures": [
        {
          "Content": "sample string 1"
        },
        {
          "Content": "sample string 1"
        }
      ],
      "FileId": "4edf0a2f-9b91-4c91-bbda-4e1c8dea3df1",
      "Content": "sample string 2",
      "IsPackageDescription": true
    },
    {
      "Signatures": [
        {
          "Content": "sample string 1"
        },
        {
          "Content": "sample string 1"
        }
      ],
      "FileId": "4edf0a2f-9b91-4c91-bbda-4e1c8dea3df1",
      "Content": "sample string 2",
      "IsPackageDescription": true
    }
  ]
}

application/xml, text/xml

Пример:
<SignedPreparedFilesModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Referent.Api.Core">
  <DocflowId>99c2be80-96ae-481f-b973-e71629dae019</DocflowId>
  <Files>
    <SignedPreparedFile>
      <Content>sample string 2</Content>
      <FileId>4edf0a2f-9b91-4c91-bbda-4e1c8dea3df1</FileId>
      <IsPackageDescription>true</IsPackageDescription>
      <Signatures>
        <PreparedFileSignature>
          <Content>sample string 1</Content>
        </PreparedFileSignature>
        <PreparedFileSignature>
          <Content>sample string 1</Content>
        </PreparedFileSignature>
      </Signatures>
    </SignedPreparedFile>
    <SignedPreparedFile>
      <Content>sample string 2</Content>
      <FileId>4edf0a2f-9b91-4c91-bbda-4e1c8dea3df1</FileId>
      <IsPackageDescription>true</IsPackageDescription>
      <Signatures>
        <PreparedFileSignature>
          <Content>sample string 1</Content>
        </PreparedFileSignature>
        <PreparedFileSignature>
          <Content>sample string 1</Content>
        </PreparedFileSignature>
      </Signatures>
    </SignedPreparedFile>
  </Files>
</SignedPreparedFilesModel>

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

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

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

Служебные файлы для подписи

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

Подготавливаемые файлы

Коллекция PreparedFile

Нет.

DocflowId

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

globally unique identifier

Нет.

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

application/json, text/json

Пример:
{
  "Files": [
    {
      "FileId": "22ada571-54f0-4bb9-8076-8ff59d6b83bd",
      "Content": "sample string 2",
      "IsPackageDescription": true
    },
    {
      "FileId": "22ada571-54f0-4bb9-8076-8ff59d6b83bd",
      "Content": "sample string 2",
      "IsPackageDescription": true
    }
  ],
  "DocflowId": "575345f3-c313-4228-bfda-46ed8b1d3032"
}

application/xml, text/xml

Пример:
<PrepearedFilesModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Referent.Api.Core">
  <DocflowId>575345f3-c313-4228-bfda-46ed8b1d3032</DocflowId>
  <Files>
    <PreparedFile>
      <Content>sample string 2</Content>
      <FileId>22ada571-54f0-4bb9-8076-8ff59d6b83bd</FileId>
      <IsPackageDescription>true</IsPackageDescription>
    </PreparedFile>
    <PreparedFile>
      <Content>sample string 2</Content>
      <FileId>22ada571-54f0-4bb9-8076-8ff59d6b83bd</FileId>
      <IsPackageDescription>true</IsPackageDescription>
    </PreparedFile>
  </Files>
</PrepearedFilesModel>