Campaigns V2

Schedules a file upgrade.

POST
/fota/v2/campaigns/files/{acc}

You can upload configuration files and schedule them in a campaign to devices.

Authorization

thingspace_oauth VZ-M2M-Token
AuthorizationBearer <token>

This is the ThingSpace token, from Credentials and Tokens is used

In: header

VZ-M2M-Token<token>

M2M Session Token (How to generate an M2M session token?)

In: header

Path Parameters

acc*string

Account identifier.

Request Body

application/json

Device logging information.

Device logging information.

campaignName?string

The campaign name.

fileName?string

The name of the file you are upgrading to.

fileVersion?string

The version of the file you are upgrading to.

distributionType?string

Valid values

startDate?string

Campaign start date.

endDate?string

Campaign end date.

downloadAfterDate?string

Specifies the starting date the client should download the package. If null, client downloads as soon as possible.

downloadTimeWindowList?array<>

List of allowed download time windows.

installAfterDate?string

The date after which you install the package. If null, install as soon as possible.

installTimeWindowList?array<>

List of allowed install time windows.

deviceList?array<string>

Device IMEI list.

Response Body

application/json

application/json

curl -X POST "https://example.com/fota/v2/campaigns/files/0402196254-00001" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "60b5d639-ccdc-4db8-8824-069bd94c95bf",  "accountName": "0242078689-00001",  "campaignName": "FOTA_Verizon_Upgrade",  "softwareName": "FOTA_Verizon_Model-A_02To03_HF",  "softwareFrom": "FOTA_Verizon_Model-A_00To01_HF",  "softwareTo": "FOTA_Verizon_Model-A_02To03_HF",  "fileName": "configfile-Verizon_VZW1_hello-world.txt",  "fileVersion": "1.0",  "distributionType": "HTTP",  "make": "Verizon",  "model": "Model-A",  "startDate": "2021-02-08",  "endDate": "2021-02-08",  "downloadAfterDate": "2021-02-08",  "downloadTimeWindowList": [    {      "startTime": "0",      "endTime": "0"    }  ],  "installAfterDate": "string",  "installTimeWindowList": [    {      "startTime": "0",      "endTime": "0"    }  ],  "deviceList": [    "string"  ],  "status": "pending"}