Uploads a configuration/supplementary file for an account. ThingSpace generates a fileName after the upload and is returned in the response.
thingspace_oauth VZ-M2M-Token In: header
M2M Session Token (How to generate an M2M session token?)
In: header
Account identifier.
multipart/form-data
Request a software upgrade.
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
curl -X POST "https://example.com/files/0402196254-00001" \ -F fileupload="/Users/files/hello-world.txt" \ -F fileVersion="1.0" \ -F make="Verizon" \ -F model="VZW1" \ -F localTargetPath="/VZWFOTA/hello-world.txt"{ "fileName": "hello-world.txt", "fileVersion": "1.0", "launchDate": "2020-08-31", "releaseNote": "note", "model": "Model-A", "make": "Verizon", "distributionType": "HTTP", "devicePlatformId": "IoT", "localTargetPath": "IoT"}{ "errorCode": "error code string", "errorMessage": "error message string"}The file to upload.
Version of the file.
The software-applicable device make.
The software-applicable device model.
Local target path on the device.