Get data route

GET/homes/{homeId}/dataRoutes/{routeId}

Base URL: https://api.tinkermode.com

Get the specified data route

Authentication

Send an Authorization header of the form ModeCloud <AUTH_CODE>.

Must contain a user, service account, or project API key.

Path parameters

NameTypeRequiredConstraintsDescription
homeIdintegerYesThe unique ID for a specified home.
routeIdstringYesData Route ID

Responses

200 Successful retrieval of the data route

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataTypestringYesread-only (server-generated)Data type of the data route. It must be one of the supported data types: metrics and locations.
destinationobjectYesDestination is the definition of the target entity of the data route. The entity must be predefined in the project or a wildcard entityId.
filterIdsarray<string>NoFilter IDs of the data route. Specify exact data filter IDs as values in the array. These filters are applied in the order specified.
filterTypesarray<string>NoFilter types of the data route. The filter rules matched by the specified filter type are automatically applied to the data route.
homeIdintegerNoHome that this data route belongs to.
namestringYesDisplay name of data route.
projectIdintegerYesread-only (server-generated)Project that this data route belongs to.
routeIdstringYesread-only (server-generated)Unique Data Route ID.
sourceobjectYesSource is the definition of the data source of the data route. The source must be referred to a Data Source or a wildcard data source.
Properties of source
PropertyTypeRequiredConstraintsDescription
catalogIdstringNoData Source Catalog ID.
deviceIdnumberNoThe device ID is associated with the catalogId and sourceId. The specified device ID must be attached to a home. The device ID is optional when the sourceId has wildcard notation or the sourceId is a data source of integration module.
sourceIdstringNoData Source ID. The sourceId can be specified with wildcard notation *. This supports prefix-only (pre*), suffix-only (*suf), partial (pre*suf), or full (*) matching. The sourceId can include at most one wildcard notation. When the sourceId has wildcard notation, the entityId in the destination must have the {{sourceId}} tag.

Response example

{
  "dataType": "metrics",
  "destination": {
    "entityClass": "warehouse",
    "entityId": "floor_1",
    "metricsDefinitionId": "environment"
  },
  "filterIds": [
    "lilz_gauge_conversion_filter_for_humidity"
  ],
  "filterTypes": [
    "conversion"
  ],
  "homeId": 1234,
  "name": "Data Route 1",
  "projectId": 1234,
  "routeId": "655346bb7e1e0d5217c55c92",
  "source": {
    "catalogId": "bu01",
    "deviceId": 1234,
    "sourceId": "a3b2ac399abc"
  }
}

401 Authorization is required to access this resource.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

403 Request failed because of denied permission.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

404 The requested dataRoute does not exist or is not accessible.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

429 Request failed because of rate limit.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

500 An unexpected error has occurred.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

503 The service is temporarily unavailable.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.