Skip to content

Configure Public Key

The following API is used for configuring the public key of the device, which will be used for validation of custom jwt token when device requests for an operational certificate for the first time or when rotating/renewing operational certificates before expiry.

####API Request

PUT {BaseURL}/configurations/{deviceId}

####Header

  • Accept: application/json
  • Content-Type: application/json
  • Authorization: Bearer {bearer token}. Include Trimble Identity OAuth bearer token for your application.

####Request Body application/json

ParameterData TypeDescription
groupId*stringGroup Id of the device created in IOT system
publicKey*stringPublic Key of the device (new line should be explicitly formatted using \n)
connectionContextstringOptional. Unique context of device connection. When a physical device contains multiple devices, this parameter should be configured uniquely for each device. Please refer (Device Connections)(iot-device-bootstrap-device-connections.md) to for more info

####Response

Status Code 200: When a device configured is successfully accepted.

####Response Model application/json

ParameterData TypeDescription
deviceId*stringDevice Id of the device
groupId*stringGroup Id of the device created in IOT system
manufacturer*stringManufacturer of the device
model*stringModel of the device
serialNumber*stringSerial number of the device
publicKey*stringPublic Key of the device
status*stringStatus of the device configuration
connectionContextstring(returned if configured)Unique context of device connection.
  • Status Code 400: When an invalid request for creation is sent.
  • Status Code 401: When the calling identity is not authorized to create the device.

For more details, refer to API Documentation.