Skip to content

File

File Storage Management API.

The File Storage Management API provides a way to store and retrieve files for devices and apps.

Get

Get a file.

Endpoint

HTTP
POST /file/get

Authorized User Role

view

Request Body

FieldTypeRequiredNotes
filenamestringyesDesired file pathname.
accountIdstringApp Account ID.

Response

File data.

GetSignedUrl

Get a signed URL to upload or download a file for the device.

Endpoint

HTTP
POST /file/getSignedUrl

Authorized User Role

view

Request Body

FieldTypeNotes
accountIdstringApp Account ID.
commandstringFile command to execute (get/put/delete).
filenamestringFile name.
mimeTypestringMIME type.
sizenumberFile size in bytes.

Response

A signed URL string.

List

Get a list of matching files filtered by matching properties.

Endpoint

HTTP
POST /file/list

Authorized User Role

view

Request Body

FieldType
*any

Response

TBD.

Put

Put a file to storage.

Endpoint

HTTP
POST /file/put

Authorized User Role

edit

Request Body

FieldTypeNotes
filenamestringFile name.
mimeTypestringMIME type.
datastringFile data in base64 format.

Response

TBD.

Remove

Remove a file.

Endpoint

HTTP
POST /file/remove

Authorized User Role

view

Request Body

FieldType
*any