Solved

REST API PUT New customer , upload file

  • 21 March 2022
  • 9 replies
  • 453 views

Userlevel 3
Badge
  • Jr Varsity III
  • 51 replies

how upload file from REST API when add new customer?

icon

Best answer by Naveen Boga 22 March 2022, 02:24

View original

9 replies

Userlevel 7
Badge +17

HI @abdi  I don’t think we can attach a file while creating of Customer API call.

You need to create a customer then invoke another API call to attach the file

Userlevel 3
Badge

Hi @Naveen Boga do you know what API to use to attach files? Thanks

Userlevel 7
Badge +17

Hi @abdi  Below is the well explained about how to attach the files using REST API. I followed the steps and it is working great and may help you as well.

 

https://asiablog.acumatica.com/2018/01/attach-files-with-rest-api.html

Userlevel 3
Badge

Hi @Naveen Boga , thank you its work
 

 

now,  how to delete this file with API? 

Userlevel 7
Badge +17

Awesome @abdi  As I know REST API doesn't support deletion of files directly.

Userlevel 3
Badge

Hi @Naveen Boga hmmm okay.

for the GET file with API, did you know?

Userlevel 7
Badge +17

@abdi  You can review the below link and hope this helps you

 

 

Userlevel 3
Badge

Hi @Naveen Boga 

API to get id files is not in response body

return file does not exist

 

but api for get files is works, i find id on screen

 

Userlevel 7
Badge +17

Hi @abdi  Postman is not supporting us to view the files, but you can SAVE this response and then open a file with proper application like PDF or WORD, it is opening properly.

 

 

 

 

 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved