POST api/document/zip/generate/single/{archiveName}

Generate archive for multiple files from a single URL returning a list of DTOs

Request Information

URI Parameters

NameDescriptionTypeAdditional information
archiveName

string

Default value is

Body Parameters

DocumentArchiveRequestSingleURLDTO
NameDescriptionTypeAdditional information
URL

URL for the GET request to fetch the DTO for. Security token will be propagated to this URL. Domains are not restricted. This value can be empty/null - in that case, the property DTO is inspected.

string

None.

TemplateCategory

Category of the document template.

string

None.

TemplateCode

Code of the document template.

string

None.

DocumentId

Unique ID identifying the document. This same ID is used for deletion.

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "URL": "sample string 1",
  "TemplateCategory": "sample string 2",
  "TemplateCode": "sample string 3",
  "DocumentId": [
    "sample string 1",
    "sample string 2"
  ]
}

text/html

Sample:
{"URL":"sample string 1","TemplateCategory":"sample string 2","TemplateCode":"sample string 3","DocumentId":["sample string 1","sample string 2"]}

application/xml, text/xml

Sample:
<DocumentArchiveRequestSingleURLDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.WebAPI.DTOs">
  <DocumentId xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </DocumentId>
  <TemplateCategory>sample string 2</TemplateCategory>
  <TemplateCode>sample string 3</TemplateCode>
  <URL>sample string 1</URL>
</DocumentArchiveRequestSingleURLDTO>

application/x-www-form-urlencoded

Sample:

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

Response Information

Resource Description

DocumentArchiveResultDTO
NameDescriptionTypeAdditional information
Archive

Resulting archive.

DocumentArchiveResultArchiveDTO

None.

Documents

Info on the documents in the archive.

DocumentArchiveResultDocumentDTO

None.

Response Formats

application/json, text/json

Sample:
{
  "Archive": {
    "BlobLink": "sample string 1",
    "ErrorMessage": "sample string 2"
  },
  "Documents": {
    "DocumentId": "sample string 1",
    "BlobLink": "sample string 2"
  }
}

text/html

Sample:
{"Archive":{"BlobLink":"sample string 1","ErrorMessage":"sample string 2"},"Documents":{"DocumentId":"sample string 1","BlobLink":"sample string 2"}}

application/xml, text/xml

Sample:
<DocumentArchiveResultDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.WebAPI.DTOs">
  <Archive>
    <BlobLink>sample string 1</BlobLink>
    <ErrorMessage>sample string 2</ErrorMessage>
  </Archive>
  <Documents>
    <BlobLink>sample string 2</BlobLink>
    <DocumentId>sample string 1</DocumentId>
  </Documents>
</DocumentArchiveResultDTO>