Upgrade sensor

POST https://daas.digicert.com/apicontroller/v1/sensor/upgradeSensor

Use this endpoint to upgrade the sensor when a new software update is available.

This success message will only display when the updatePreference is set to 1. See, Update sensor details.

Example requests and responses

cURL

curl --location --request POST 'https://daas.digicert.com/apicontroller/v1/sensor/upgradeSensor' \
--header 'X-DC-DEVKEY: {{api_key}}' \
--header 'Content-Type: application/json' \
--data-raw '{"licenseKey":[{{license_key}}],"accountId":5153184,"divisionIds":[677793]}'

200 OK

[
    {
        "error": null,
        "data": {
            "id": "B94EDA7F773F19AD",
            "message": "Sensor upgrade Successful"
        }
    }
]

Request parameters

NameReq/Opt.TypeDescription
licenseKeyrequiredstringLicense key of the sensor to upgrade.
accountIdrequiredstringAccount ID.
divisionIdsrequiredintegerUser's division IDs.

Response parameters

NameTypeDescription
errorobjectIncludes the error code, if any.
dataobjectObject container for response.
.. idstringLicense key of the updated sensor.
.. messagestringMessage with additional information about the request.