Premium APIsSoftware ManagementSoftware Management V3API Reference Pages V3

Add or Remove Devices from a Campaign

Add or Remove Devices in an Upgrade

PUT /campaigns/{accountName}/{campaignId}

Allows devices to be added or removed from a software upgrade.

Uses and Requirements

Devices cannot be removed once an upgrade is in a Scheduled state. To remove devices, the campaign must be in one of the following states:

  • RequestPending
  • Queued

HTTP Request

PUT https://thingspace.verizon.com/api/fota/v3/campaigns/{accountName}/{campaignId}

Resource Path and Query Parameters

Parameter NameData TypeDescription
accountName
required
stringAccount identifier.
campaignId
required
stringSoftware upgrade identifier, returned in the "id" value of the POST /{campaigns}/{accountName} response when the upgrade was scheduled.

Header Parameters

The request header must contain a current ThingSpace authorization token and a current VZ-M2M session token. For more details on how to get these tokens, visit Getting Started.

Parameter NameData TypeDescription
Authorization
required
stringHTTP Authorization bearer token:
Authorization: Bearer {token}
VZ-M2M-Token
required
stringA valid session token:
VZ-M2M-Token: {M2Mtoken}

Request Body

Parameter NameData TypeDescription
addOrRemoveDeviceobjectAdds or removes devices to existing software upgrade information.
addOrRemoveDevice.TypestringThe type of action you want to take. Valid values include:
  • append to add
  • remove to remove
addOrRemoveDevice.deviceListobjectList of device IMEIs

Example Request

Request a software upgrade.

curl -X PUT https://thingspace.verizon.com/api/fota/v2/campaigns/$ACC/$CAMPAIGN_ID -H 'Authorization: Bearer $AUTH_TOKEN' -H 'VZ-M2M-Token: $M2M_TOKEN' -H 'Content-Type: application/json' -d
{
  "addOrRemoveDevice": [
   {
     "type": "append",
     "deviceList":[
     "900000000000009",
     "900000000000008",
     "900000000000007"
      ]
    }
  ]
}

Success Responses

Status 200

Parameter NameData TypeDescription
accountNamestringThe account name.
campaignIdstringSoftware upgrade identifier, returned in the “id” value of the POST /{campaigns}/{accountName} response when the upgrade was scheduled.
requestIdstringRequest identifier.

Example Success Response

{
  "accountName": "0000123456-00001",
  "campaignId": "60b5d639-eeee-ffff-gggg-069bd94c95bf",
  "requestId": "string"
}

Failure Responses

Status 400

All error messages are returned in this format:

{
  "errorCode": "error code string",
  "errorMessage": "error message string"
}

Error codes and messages are listed on the Error Messages page, along with explanations and suggestions for corrective actions.

On this page