Used to tell Lhings that the specified device will no longer be available. After calling this service Lhings marks the device as offline and it will not send any actions, status requests or any other kind of message to the device.

Request specification

  • Method: PUT
  • URL: /devices/{uuid}/states/online

Example Request

  • Request URL:
  • Request headers: X-Api-Key: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
  • Request headers: Content-Type: application/json
  • Request method: PUT
  • Request body:
    {"name":"online", "value":false}

Example Response

  • HTTP status: 200 OK
  • Response body:

Error summary

  • 200: success.
  • 400: bad request. Usually caused by a wrong syntax in the JSON request body.
  • 401: Api key not provided or invalid.
  • 404: given uuid does not match any installed device.
Back to top