Skip to main content

Query Single Device Matching Capabilities

GET 

/devices/capabilities

Query the capabilities of a single device that meet the filter criteria. Only matched definitions and the current value for the corresponding traits will be returned. The full device definition will NOT be returned.

tip
  • functionCodes, traitCodes, and commandCodes are combined using AND logic. To query for any trait or command capabilities, please send separate requests, or query the complete function definition using only functionCodes.
  • If only functionCodes are provided and neither traitCodes nor commandCodes are passed: all complete Trait and Command definitions under that Function (i.e., all leaf nodes) are returned.
  • If traitCodes or commandCodes are provided: only the Trait or Command leaves matching these criteria are returned; non-matching leaves are not returned. Commands do not include a current value.
  • If the device exists but no capabilities match, basic device info is returned with endpoints=[]. If the device does not exist or cannot be accessed, data=null.

Request​

Responses​

Request succeeded.