Campaigns V2

Change campaign dates and time windows

PUT
/fota/v2/campaigns/{account}/{campaignId}/dates

This endpoint allows user to change campaign dates and time windows. Fields which need to remain unchanged should be also provided.

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

account*string

Account identifier.

campaignId*string

Software upgrade information.

Request Body

*/*

New dates and time windows.

New dates and time windows.

startDate*string

Campaign start date.

Formatdate
endDate*string

Campaign end date.

Formatdate
downloadAfterDate?string

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

Formatdate
downloadTimeWindowList?array<>

List of allowed download time windows. Removing of existing windows is not allowed.

installAfterDate?string

Client will install package after date. If null, client will install as soon as possible.

Formatdate
installTimeWindowList?array<>

List of allowed install time windows. Removing of existing windows is not allowed.

Response Body

application/json

application/json

curl -X PUT "https://example.com/fota/v2/campaigns/0000123456-00001/60b5d639-ccdc-4db8-8824-069bd94c95bf/dates" \  -H "Content-Type: */*" \  -d '<startDate>2020-08-21</startDate>  <endDate>2020-08-22</endDate>  <downloadAfterDate>2020-08-21</downloadAfterDate>  <downloadTimeWindowList>    <startTime>3</startTime>    <endTime>4</endTime>  </downloadTimeWindowList>  <installAfterDate>2020-08-21</installAfterDate>  <installTimeWindowList>    <startTime>5</startTime>    <endTime>6</endTime>  </installTimeWindowList>'
{  "id": "60b5d639-ccdc-4db8-8824-069bd94c95bf",  "accountName": "0402196254-00001",  "campaignName": "FOTA_Verizon_Upgrade",  "softwareName": "FOTA_Verizon_Model-A_02To03_HF",  "distributionType": "HTTP",  "make": "Verizon",  "model": "Model-A",  "softwareFrom": "FOTA_Verizon_Model-A_00To01_HF",  "softwareTo": "FOTA_Verizon_Model-A_02To03_HF",  "startDate": "2020-08-21",  "endDate": "2020-08-22",  "downloadAfterDate": "2020-08-21",  "downloadTimeWindowList": [    {      "startTime": 3,      "endTime": 4    },    {      "startTime": 5,      "endTime": 6    }  ],  "installAfterDate": "2020-08-21",  "installTimeWindowList": [    {      "startTime": 5,      "endTime": 6    },    {      "startTime": 6,      "endTime": 7    }  ],  "status": "RequestPending"}