Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. The request is for a device and is not sent through a gateway. The resource path and authorization token belong to the device. gatewayInfo should NOT be set.

  2. The request is for the gateway, not for a delegated device. The resource path and authorization token belong to the gateway. gatewayInfo should NOT be set.

  3. The request has the gateway's resource path and authorization token, but the gateway requests on a device’s behalf. gatewayInfo.delegated_device_id MUST be set to the delegated device’s ID.

  4. The request has the device's resource path and authorization token and is sent through a gateway. gatewayInfo.gateway_id MUST be set to the gateway’s ID.

JSON representation

Code Block
{
  // Union field gateway_or_device can be only one of the following:
  "delegatedDeviceId": string,
  "gatewayId": string
  // End of list of possible types for union field gateway_or_device.
}

...