--- title: "Upgrade sensor" source_url: https://dev.digicert.com/certcentral-apis/discovery-api/sensor/upgrade-sensor.html api_method: POST api_endpoint: "/apicontroller/v1/sensor/upgradeSensor" api_url: "https://daas.digicert.com/apicontroller/v1/sensor/upgradeSensor" --- **POST** `https://daas.digicert.com/apicontroller/v1/sensor/upgradeSensor` Use this endpoint to upgrade the sensor when a new software update is available. > **Info** > > This success message will only display when the updatePreference is set to `1`. See, [Update sensor details](https://dev.digicert.com/md/certcentral-apis/discovery-api/sensor/update-sensor-details.md). ## Example requests and responses ## cURL ```bash 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 ```json [ { "error": null, "data": { "id": "B94EDA7F773F19AD", "message": "Sensor upgrade Successful" } } ] ``` ## Request parameters
Name Req/Opt. Type Description
licenseKey required string License key of the sensor to upgrade.
accountId required string Account ID.
divisionIds required integer User's division IDs.
## Response parameters
Name Type Description
error object Includes the error code, if any.
data object Object container for response.
.. id string License key of the updated sensor.
.. message string Message with additional information about the request.