Upload File Attachment

Main Page - Attachment

Supply the attachment ID in the query string and post the binary data with base64 encoding in the body to set or replace the file contents of an attachment record.

Sample Request Query String:
?token=aaaaaaaaaa&id=ddbe8804-af8c-4f3f-8a5e-cfab5ac764e3

Request Body:
VGhpcyBpcyB3aGVyZSB5b3Ugd291bGQgdGFrZSB0aGUgcmF3IGJ5dGVzIG9mIHlvdXIgZmlsZSwgYmFzZTY0IGVuY29kZSB0aGVtLCBhbmQgaW5jbHVkZSB0aGF0IGRhdGEgaW4gdGhlIGJvZHkgb2YgeW91ciBwb3N0Lg==

Moneylender will decode the supplied information and then set or replace the binay data on the specified attachment with the data submitted in the request body. The API will respond with a JSON success boolean, and message.

Sample Response:
{
"success": true,
"message": "Saved 206 bytes to attachment Loan Contract.pdf"
}