This endpoint allows user to change campaign dates and time windows. Fields which need to remain unchanged should be also provided.
thingspace_oauth VZ-M2M-Token In: header
M2M Session Token (How to generate an M2M session token?)
In: header
Account identifier.
Software upgrade information.
*/*
New dates and time windows.
TypeScript Definitions
Use the request body type in TypeScript.
New dates and time windows.
application/json
application/json
curl -X PUT "https://example.com/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"}{ "errorCode": "error code string", "errorMessage": "error message string"}Campaign start date.
dateCampaign end date.
dateSpecifies starting date client should download package. If null, client will download as soon as possible.
dateList of allowed download time windows. Removing of existing windows is not allowed.
Client will install package after date. If null, client will install as soon as possible.
dateList of allowed install time windows. Removing of existing windows is not allowed.