Campaigns V3

Change firmware campaign dates and time windows. This api is allowed before the campaign StartDate

PUT
/fota/v3/campaigns/firmware/{acc}/{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

acc*string

Account identifier.

campaignId*string

Firmware upgrade information.

Request Body

application/json

New dates and time windows.

New dates and time windows.

startDate*string

Campaign start date.

Formatdate
endDate*string

Campaign end date.

Formatdate
campaignTimeWindowList?array<>

List of allowed campaign time windows.

Response Body

application/json

application/json

curl -X PUT "https://example.com/fota/v3/campaigns/firmware/0000123456-00001/f858b8c4-2153-11ec-8c44-aeb16d1aa652/dates" \  -H "Content-Type: application/json" \  -d '{    "startDate": "2022-02-23",    "endDate": "2022-02-24",    "campaignTimeWindowList": [      {        "startTime": 14,        "endTime": 18      }    ]  }'
{  "id": "4e03b882-936a-11ec-931f-76f56843c393",  "accountName": "0000123456-00001",  "campaignName": "modify-campaign-test-1",  "firmwareName": "NordicSemiconductorASA_nRF9160_ee58ac77-f1fd-4960-8dc4-4d32e118a6d4_4325d595-7b69-4474-ba39-9c177930aac3",  "protocol": "LWM2M",  "firmwareFrom": "ee58ac77-f1fd-4960-8dc4-4d32e118a6d4",  "firmwareTo": "4325d595-7b69-4474-ba39-9c177930aac3",  "make": "Nordic Semiconductor ASA",  "model": "nRF9160",  "status": "CampaignRequestQueued",  "startDate": "2022-02-23",  "endDate": "2022-02-24",  "campaignTimeWindowList": [    {      "startTime": 14,      "endTime": 18    }  ]}