code: public DeviceStatus putDeviceStatus(String deviceId, DeviceStatusPut body) throws ApiException {
          ApiResponse<DeviceStatus> resp = putDeviceStatusWithHttpInfo(deviceId, body);
          return resp.getData();
      }
docs: Update Device Status
  Update Device Status
  @param deviceId Device ID. (required)
  @param body Body (optional)
  @return DeviceStatus
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body