Question

Is there an option to send an image file via rest api?

Is there an option to send an image file via rest api?, any examples might help.

Like 0

Like

1 comments
Best reply

There is FileApiService  for uploading files. Please investigate how the Attachments detail works. An example of how to call the service in JS can be found in the ConfigurationFileApi schema. Put a break point into the "upload" method in the ConfigurationFileApi schema (in a browser) and add a file to an "Attachments and notes" detail - https://prnt.sc/r93glv. 

In "network" tab you will see a sent request for uploading file - https://prnt.sc/r93f0o

 

There is FileApiService  for uploading files. Please investigate how the Attachments detail works. An example of how to call the service in JS can be found in the ConfigurationFileApi schema. Put a break point into the "upload" method in the ConfigurationFileApi schema (in a browser) and add a file to an "Attachments and notes" detail - https://prnt.sc/r93glv. 

In "network" tab you will see a sent request for uploading file - https://prnt.sc/r93f0o

 

Show all comments