POST api/SetFields

Request Information

URI Parameters

None.

Body Parameters

SetFieldsModel
NameDescriptionTypeAdditional information
PdfFields

Collection of PdfField

None.

FileBytes

Collection of byte

None.

Request Formats

application/json, text/json

Sample:
{
  "PdfFields": [
    {
      "Name": "sample string 1",
      "Value": "sample string 2",
      "Values": [
        "sample string 1",
        "sample string 2"
      ],
      "IsChecked": true,
      "IsReadonly": true
    },
    {
      "Name": "sample string 1",
      "Value": "sample string 2",
      "Values": [
        "sample string 1",
        "sample string 2"
      ],
      "IsChecked": true,
      "IsReadonly": true
    }
  ],
  "FileBytes": "QEA="
}

application/xml, text/xml

Sample:
<SetFieldsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PdfService.Models.RequestModels">
  <FileBytes>QEA=</FileBytes>
  <PdfFields xmlns:d2p1="http://schemas.datacontract.org/2004/07/PdfService.Models">
    <d2p1:PdfField>
      <d2p1:IsChecked>true</d2p1:IsChecked>
      <d2p1:IsReadonly>true</d2p1:IsReadonly>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:Value>sample string 2</d2p1:Value>
      <d2p1:Values xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </d2p1:Values>
    </d2p1:PdfField>
    <d2p1:PdfField>
      <d2p1:IsChecked>true</d2p1:IsChecked>
      <d2p1:IsReadonly>true</d2p1:IsReadonly>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:Value>sample string 2</d2p1:Value>
      <d2p1:Values xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </d2p1:Values>
    </d2p1:PdfField>
  </PdfFields>
</SetFieldsModel>

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

Response Information

Resource Description

Collection of byte

Response Formats

application/json, text/json

Sample:
"QEA="

application/xml, text/xml

Sample:
<base64Binary xmlns="http://schemas.microsoft.com/2003/10/Serialization/">QEA=</base64Binary>