post https://api.flowthings.io/v5.0//file/
Files can be uploaded to Octave using a multipart request, containing parts for both the file itself, and the Octave
File object.
Part | Name | Filename | Content Type | Required? |
---|---|---|---|---|
Raw File | file | <name of the file> | <type of the file> | Yes |
Octave File Object | params | - | application/json | Yes |
Both parts must be present for the request to be valid, although the JSON Object included in the params
part may
be empty if the user wishes to use default values.
Once the server responds with a 201
, the File object is ready to be used:
- To send directly to Devices using Send File
- To be attached to a Blueprint, allowing Files to be synchronized on Devices using the Blueprint mechanism.