Get Supported Asset Type
GET/supported-asset-types/:supportedAssetTypeId
Get Supported Asset Type
Request
Path Parameters
id stringrequired
The ID of supported asset type
Responses
- 200
- 401
- 403
- 404
- 422
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
- Array [
- ]
data objectrequired
Data of the supported asset type.
id stringrequired
name stringrequired
description stringrequired
isIotDevice stringrequired
image stringrequired
brand stringrequired
model stringrequired
encodeCodec stringrequired
decodeCodec stringrequired
properties object[]required
actions object[]required
{
  "data": {
    "id": "string",
    "name": "string",
    "description": "string",
    "isIotDevice": "string",
    "image": "string",
    "brand": "string",
    "model": "string",
    "encodeCodec": "string",
    "decodeCodec": "string",
    "properties": [
      {}
    ],
    "actions": [
      {}
    ]
  }
}
{
  "data": {
    "id": "Infodeck-NS300-ABC",
    "name": "IDT-Bot-SupportedAssetType",
    "description": "IDT-SupportedAssetType-Description",
    "isIotDevice": true,
    "image": "Supported-Asset-Type-Image.png",
    "brand": "Infodeck",
    "model": "NS330-PSU",
    "encodeCodec": "function encodeDownlink(input) {\n  const bytes = [];\n\n  return {\n    bytes,\n  };\n}",
    "decodeCodec": "function decodeUplink(input) {\n  const bytes = input.bytes;\n  const data = {};\n\n  return {\n    data,\n  };\n}",
    "properties": [
      {
        "key": "Power",
        "name": "Power",
        "type": "integer",
        "unit": "W"
      }
    ],
    "actions": [
      {
        "confirmed": true,
        "fPort": 85,
        "name": "Power On",
        "payload": "080100ff",
        "payloadDataType": "Hex"
      }
    ]
  }
}
The request has not permission.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error stringrequired
The request has not permission.
message stringrequired
The request has not permission message.
{
  "error": "string",
  "message": "string"
}
{
  "error": "Unauthenticated",
  "message": "Authentication is required and has failed or has not yet been provided."
}
The request has not permission.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error stringrequired
The request has not permission.
message stringrequired
The request has not permission message.
{
  "error": "string",
  "message": "string"
}
{
  "error": "Forbidden",
  "message": "Access to the requested resource is forbidden."
}
The resource hasn't found.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error stringrequired
The resource hasn't found.
message stringrequired
The resource hasn't found message.
{
  "error": "string",
  "message": "string"
}
{
  "error": "ResourceNotFound",
  "message": "The requested resource could not be found."
}
The input data has invalid.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error stringrequired
The input data has invalid.
message stringrequired
The input data has invalid message.
{
  "error": "string",
  "message": "string"
}
{
  "error": "ValidationError",
  "message": "Input data validation failed."
}
Loading...