Campaigns V3

Add or Remove devices to an existing firmware campaign. This api is allowed before the campaign StartDate

PUT
/fota/v3/campaigns/firmware/{acc}/{campaignId}

This endpoint allows user to Add or Remove devices to an existing campaign.

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.

campaignId*string

Unique identifier of a campaign.

Request Body

application/json

Add or remove device to existing upgrade information.

Add or remove device to existing upgrade information.

Type*string

Operation either 'append' or 'remove'

deviceList*array<string>

Device IMEI list.

Response Body

application/json

application/json

curl -X PUT "https://example.com/fota/v3/campaigns/firmware/0000123456-00001/f858b8c4-2153-11ec-8c44-aeb16d1aa652" \  -H "Content-Type: application/json" \  -d '{    "Type": "remove",    "deviceList": [      "15-digit IMEI"    ]  }'
{  "accountName": "0000123456-00001",  "campaignId": "f858b8c4-2153-11ec-8c44-aeb16d1aa652",  "deviceList": [    {      "deviceId": "15-digit IMEI",      "status": "AddDeviceSucceed",      "Reason": "Device added Successfully"    }  ]}