Upload a file via POST request
Number of APIs: 1
About this collection
This collection shows you multiple ways to upload a file in Qodex. You can also watch this quick video below to see exactly how it's done.
The two examples here send a CSV file to the Qodex Echo API in a POST request. In the body of the request, you can attach a file in one of two ways:
- In the request body, click
form-data
, hover over thekey
input field, and find the hidden dropdown that saysText
. ClickText
, and then change it to sayFile
. In theValue
field, clickSelect File
and select the file to send via the POST request body. - Click
binary
and then clickSelect File
to attach your file.
These are basic ways to upload a file via Qodex. The exact behavior for how an API is set up to receive a file depends on the architecture of that API and you'll have to look at the documentation to ensure it's done properly.