Quote Attachment API

Create Quote Attachment
URL /QuoteAttachment
Method POST
Body

{
"ContentType": "text/plain",
"FileName": "file7777.txt",
"Title": "filetitle7777",
"QuoteId": 16
}

Response
HTTP/1.1 200 OK

{
"ContentType": "text/plain",
"FileName": "file7777.txt",
"Id": 3277,
"Title": "filetitle7777",
"QuoteId": 16
}

Comments

 

  Update Quote Attachment
URL /QuoteAttachment/{quoteAttachmentId}
Method PUT
Body

{
"Title": "filetitle7777888"
}

Response
HTTP/1.1 200 OK

{
"ContentType": "text/plain",
"FileName": "file7777.txt",
"Id": 3277,
"Title": "filetitle7777888",
"QuoteId": 16
}

Comments  
  Get Quote Attachments
URL /QuoteAttachment/{quoteId}/{page}/{size}
Method GET
Body

 

Response
HTTP/1.1 200 OK

[
{
"ContentType": "text/plain",
"FileName": "file7777.txt",
"Id": 3277,
"Title": "filetitle7777888",
"QuoteId": 16
}
]

Comments  
  Upload Quote Attachment
URL /QuoteAttachment/Stream/{quoteAttachmentId}
Method PUT
Body

{file content}

Response
HTTP/1.1 200 OK

{
"Data": "Quote",
"Id": 3277,
"IsSuccess": true,
"Message": "Updated"
}

Comments

 

  Download Quote Attachment
URL /QuoteAttachment/Stream/{quoteAttachmentId}
Method GET
Body

 

Response
HTTP/1.1 200 OK
{file content}
Comments

This downloads a binary stream of data. You will need to save the data to a file with the appropriate filetype in order to open the attachment.

  Delete Quote Attachment
URL /QuoteAttachment/{quoteAttachmentId}
Method DELETE
Body

 

Response
HTTP/1.1 200 OK

{
"Data": null,
"Id": 0,
"IsSuccess": true,
"Message": "Attachment was deleted"
}

Comments