API Reference
  • IoT IdP API Reference
  • Reference
    • HTTP API Reference
      • Token API
      • IdP API
      • Device API
    • CoAP API Reference
      • Token API
      • IdP API
      • Device API
Powered by GitBook
On this page
  • Update Public Key Endpoint
  • Refresh public key
  1. Reference
  2. HTTP API Reference

Device API

The device API is used for updating device information registered with our IoT identity provider.

PreviousIdP APINextCoAP API Reference

Last updated 2 years ago

Update Public Key Endpoint

Use this endpoint to update the public key of a registered device. To ensure that only a genuine device can update its public key, the device has to authenticate by providing a private key JWT. Furthermore the device has to provide a proof of possession (PoP) object to demonstrate possession of the private key corresponding to the public key it tries to update.

For additional details about the JWT and the PoP object visit our .

Refresh public key

POST https://iot-idp.demo.apps.iothentix.io/device/update/pubkey

Headers

Name
Type
Description

Authorization*

String

Private key JWT containing the new public key.

Request Body

Name
Type
Description

pop*

String

Proof of Possession object

{
    "Success": "Public key updated"
}
{
    // TODO
}
{
    "error": {
        "code": 401,
        "status": "Unauthorized",
        "request": "<REQUEST_ID>",
        "message": "The request could not be authorized"
    }
}
{
    "error": 
    {
        "code": 500,
        "status": "Internal Server Error",
        "request": "<REQUEST_ID>",
        "message": "An internal server error occurred, please contact the system administrator"
    }
}
{
    "error": {
        "code": 404,
        "status": "Not Found",
        "request": "<REQUEST_ID>",
        "message": "The requested resource could not be found"
    }
}
{
    "error": {
        "code": 403,
        "status": "Forbbiden",
        "request": "<REQUEST_ID>",
        "message": "Forbidden"
    }
}
developer guide