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, andcommandCodesare combined using AND logic. To query for any trait or command capabilities, please send separate requests, or query the complete function definition using onlyfunctionCodes.- If only
functionCodesare provided and neithertraitCodesnorcommandCodesare passed: all complete Trait and Command definitions under that Function (i.e., all leaf nodes) are returned. - If
traitCodesorcommandCodesare 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
- 200
- 400
- 401
- 403
- 404
- 429
- 500
Request succeeded.
Request parameter error
Unauthorized or authentication expired
No permission to access
Resource not found
Request frequency too high
Internal server error