Patricia Vazquez

Upload an image using API REST

Discussion created by Patricia Vazquez on May 26, 2017
Latest reply on May 26, 2017 by Patricia Vazquez

Hi all

I'm trying to upload an image to a field from a record. I'm using postman with the endpoints from SugarCRM.

But I don't know how to do it and I don't see any example. The response that I obtain is {"error": "missing_parameter",
"error_message": "Attachment is missing"} or {
"error": "request_too_large",
"error_message": "Invalid file format, it is only possible to upload files with images."
}

I attach an screenshot

https://gyazo.com/a6d10aa1bb031919e44746de8c2950ac

Please, I need some advice

Thank you all

 

Sources: http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.9/Integration/Web_Services/v10/Endpoin… 

Outcomes