Skip to main content

Uploading Files

Key Concepts​

Instead of posting JSON or similar text-based data, you can use the File Uploads to send more complex data in your API requests.

Multi-part form data

You can choose to upload a file, or to create multi-part from data that encapsulated multiple files

APImetrics Files page listing an uploaded content file with type, length and last updated, plus an Upload File button

Handling File Uploads​

You can upload files from the Files link in the Advanced section on the left of each APImetrics page.

Click on the +Upload File button. This will open a file picker in your browser to upload.

If you wish to send Multi-part data, you can build up the data using the form-builder. Upload each file and give the each field a name. This will save the full multi-part message as one file.

Files link under the Advanced section showing the Upload File button used to add files for monitor requests

Using the File in a monitor​

When editing the monitor, expand the "Body..." section.
Then select the File / Binary content type, this will expose the file picker:

Monitor editor Body section with the Content Type set to File / Binary, exposing the file picker

Then select the file you wish to use.
Remember to Click "Save" to store your changes.

Monitor editor with a file selected for the File / Binary body, ready to Save the changes

POST and PUT only

Note that you must use an HTTP method of POST or PUT to upload content with the request