POST api/Attachment

Request Information

URI Parameters

None.

Body Parameters

AttachmentRequest
NameDescriptionTypeAdditional information
BatchNumber

string

Required

Min length: 10

ReceiptNumber

string

Required

Min length: 10

Attachment

Attachment

Required

Request Formats

application/json, text/json, text/html

Sample:
{
  "batchNumber": "sample string 1",
  "receiptNumber": "sample string 2",
  "attachment": {
    "name": "sample string 1",
    "contentType": "sample string 2",
    "fileType": "sample string 3",
    "uri": "sample string 4",
    "identifier": "sample string 5",
    "size": 6,
    "description": "sample string 7",
    "isActive": true
  }
}

application/xml, text/xml

Sample:
<AttachmentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GivingService.Models">
  <Attachment xmlns:d2p1="http://schemas.datacontract.org/2004/07/GiftModels">
    <d2p1:ContentType>sample string 2</d2p1:ContentType>
    <d2p1:Description>sample string 7</d2p1:Description>
    <d2p1:FileType>sample string 3</d2p1:FileType>
    <d2p1:Identifier>sample string 5</d2p1:Identifier>
    <d2p1:IsActive>true</d2p1:IsActive>
    <d2p1:Name>sample string 1</d2p1:Name>
    <d2p1:Size>6</d2p1:Size>
    <d2p1:Uri>sample string 4</d2p1:Uri>
  </Attachment>
  <BatchNumber>sample string 1</BatchNumber>
  <ReceiptNumber>sample string 2</ReceiptNumber>
</AttachmentRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.