diff --git a/docs/index.html b/docs/index.html index 53846d54..8fc918a9 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2268,7 +2268,7 @@
-{- "nextPageOffset": null,
- "rows": [
- {
- "exportRequest": {
- "hashId": "maay1",
- "content": {
- "type": "all",
- "staticOnly": false,
- "gridHashId": null,
- "from": "2019-12-01T00:00Z",
- "to": "2020-01-01T00:00Z"
}, - "delimiter": ",",
- "rowDelimiter": "\n",
- "status": "available",
- "createdAt": "2019-12-31T15:23Z"
}
}
]
}
Update the settings of this user
-Api-Version required | integer Example: 5 |
name | string <= 255 characters |
password | string >= 8 characters |
locale | string Enum: "en" "nl" Locale code - |
timezone | string |
phone | string or null |
company | string or null |
{- "name": "Jane Doe",
- "password": "stringst",
- "locale": "en",
- "timezone": "string",
- "phone": "string",
- "company": "string"
}
Get information about the logged in user
-Api-Version required | integer Example: 5 |
- -# You can also use wget -curl -X GET https://api.withthegrid.com/settings/ \ - -H 'Accept: text/json' \ - -H 'Api-Version: 5' \ - -H 'Authorization: Bearer {access-token}' - -
{- "environment": {
- "hashId": "f1a4w1",
- "name": "My monitoring environment",
- "mapLayers": [
- {
- "name": "My map layer",
- "key": "myLayer",
- "style": {
- "layers": [
- {
- "id": "pdok-layer",
- "type": "raster",
- "source": "pdok-source",
- "paint": { }
}
], - "sources": {
- "pdok-source": {
- "type": "raster",
- "bounds": [
- 3.1706551165717776,
- 50.5788239246427,
- 7.4887369433036834,
- 53.637607600687694
]
}
}
}, - "namedStyle": "pdok-bodemkaart"
}
], - "boundingBox": {
- "type": "LineString",
- "coordinates": [
- [
- 3.3135576,
- 47.9747658
], - [
- 5.1288442202798,
- 51.8145997
]
]
}, - "fieldConfigurations": {
- "pinGroups": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "edges": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "grids": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "nodes": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "pins": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
]
}, - "locale": "en",
- "defaultGraphRange": "30d",
- "measurementsExpirationDays": 365,
- "enforceTwoFactorAuthentication": false,
- "theme": {
- "light": {
- "primary": "#ff00ff",
- "secondary": "#ff00ff",
- "accent": "#ff00ff",
- "error": "#ff00ff",
- "warning": "#ff00ff",
- "info": "#ff00ff",
- "success": "#ff00ff",
- "neutral": "#ff00ff"
}, - "dark": {
- "primary": "#ff00ff",
- "secondary": "#ff00ff",
- "accent": "#ff00ff",
- "error": "#ff00ff",
- "warning": "#ff00ff",
- "info": "#ff00ff",
- "success": "#ff00ff",
- "neutral": "#ff00ff"
}
}, - "expiresAt": null,
- "createdAt": "2019-12-31T15:23Z"
}, - "environmentRights": [
- "STATIC",
- "USERS"
], - "userEnvironmentSettings": {
- "notificationLevel": 0,
- "defaultAnalyticsPanelHashId": "7usgt"
}, - "user": {
- "hashId": "b45zo0",
- "email": "info@acme.com",
- "name": "John Doe",
- "timezone": "Europe/Amsterdam",
- "locale": "en",
- "phone": "string",
- "company": "string",
- "rights": [
- "STATIC",
- "USERS"
], - "twoFactorAuthenticationEnabled": true
}
}
{- "nextPageOffset": null,
- "rows": [
- {
- "exportRequest": {
- "hashId": "maay1",
- "content": {
- "type": "all",
- "staticOnly": false,
- "gridHashId": null,
- "from": "2019-12-01T00:00Z",
- "to": "2020-01-01T00:00Z"
}, - "delimiter": ",",
- "rowDelimiter": "\n",
- "status": "available",
- "createdAt": "2019-12-31T15:23Z"
}
}
]
}
Send email with feedback
+Api-Version required | integer Example: 5 |
theme | string or null <= 255 characters |
feedback required | string <= 1000 characters |
{- "theme": "Email theme",
- "feedback": "Text with feedback about withthegrid"
}
Search the audit log
Rights
Connectivity environment: ENVIRONMENT_ADMIN
@@ -3986,7 +3975,7 @@object |
Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
+
# You can also use wget curl -X GET https://api.withthegrid.com/settings/log \ @@ -3995,22 +3984,35 @@Headers
-H 'Api-Version: 5' \ -H 'Authorization: Bearer {access-token}' -
{- "nextPageOffset": null,
- "rows": [
- {
- "log": {
- "hashId": "op09a",
- "userHashId": "b45zo0",
- "objectType": "command",
- "objectHashId": "ga9741s",
- "subObjectType": null,
- "subObjectHashId": null,
- "action": "delete",
- "diff": null,
- "createdAt": "2019-12-31T15:23Z"
}, - "userName": "John Doe"
}
]
}
{- "nextPageOffset": null,
- "rows": [
- {
- "log": {
- "hashId": "op09a",
- "userHashId": "b45zo0",
- "objectType": "command",
- "objectHashId": "ga9741s",
- "subObjectType": null,
- "subObjectHashId": null,
- "action": "delete",
- "diff": null,
- "createdAt": "2019-12-31T15:23Z"
}, - "userName": "John Doe"
}
]
}
Get information about the logged in user
+Api-Version required | integer Example: 5 |
+ +# You can also use wget +curl -X GET https://api.withthegrid.com/settings/ \ + -H 'Accept: text/json' \ + -H 'Api-Version: 5' \ + -H 'Authorization: Bearer {access-token}' + +
{- "environment": {
- "hashId": "f1a4w1",
- "name": "My monitoring environment",
- "mapLayers": [
- {
- "name": "My map layer",
- "key": "myLayer",
- "style": {
- "layers": [
- {
- "id": "pdok-layer",
- "type": "raster",
- "source": "pdok-source",
- "paint": { }
}
], - "sources": {
- "pdok-source": {
- "type": "raster",
- "bounds": [
- 3.1706551165717776,
- 50.5788239246427,
- 7.4887369433036834,
- 53.637607600687694
]
}
}
}, - "namedStyle": "pdok-bodemkaart"
}
], - "boundingBox": {
- "type": "LineString",
- "coordinates": [
- [
- 3.3135576,
- 47.9747658
], - [
- 5.1288442202798,
- 51.8145997
]
]
}, - "fieldConfigurations": {
- "pinGroups": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "edges": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "grids": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "nodes": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "pins": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
]
}, - "locale": "en",
- "defaultGraphRange": "30d",
- "measurementsExpirationDays": 365,
- "enforceTwoFactorAuthentication": false,
- "theme": {
- "light": {
- "primary": "#ff00ff",
- "secondary": "#ff00ff",
- "accent": "#ff00ff",
- "error": "#ff00ff",
- "warning": "#ff00ff",
- "info": "#ff00ff",
- "success": "#ff00ff",
- "neutral": "#ff00ff"
}, - "dark": {
- "primary": "#ff00ff",
- "secondary": "#ff00ff",
- "accent": "#ff00ff",
- "error": "#ff00ff",
- "warning": "#ff00ff",
- "info": "#ff00ff",
- "success": "#ff00ff",
- "neutral": "#ff00ff"
}
}, - "expiresAt": null,
- "createdAt": "2019-12-31T15:23Z"
}, - "environmentRights": [
- "STATIC",
- "USERS"
], - "userEnvironmentSettings": {
- "notificationLevel": 0,
- "defaultAnalyticsPanelHashId": "7usgt"
}, - "user": {
- "hashId": "b45zo0",
- "email": "info@acme.com",
- "name": "John Doe",
- "timezone": "Europe/Amsterdam",
- "locale": "en",
- "phone": "string",
- "company": "string",
- "rights": [
- "STATIC",
- "USERS"
], - "twoFactorAuthenticationEnabled": true
}
}
Update the settings of this user
+Api-Version required | integer Example: 5 |
name | string <= 255 characters |
password | string >= 8 characters |
locale | string Enum: "en" "nl" Locale code + |
timezone | string |
phone | string or null |
company | string or null |
{- "name": "Jane Doe",
- "password": "stringst",
- "locale": "en",
- "timezone": "string",
- "phone": "string",
- "company": "string"
}
Update the environment settings of this user
Rights
Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
notificationLevel | number or null <float> Enum: 0 1 2 The user is subscribed to every issue created on locations in this environment (0), when the issue gets serious (1) or when the issue gets critical (2). If null, the user is not autmatically subscribed to new issues. |
defaultAnalyticsPanelHashId | string or null |
{- "notificationLevel": 0,
- "defaultAnalyticsPanelHashId": "7usgt"
}
Subscribe to alerts on objects (currently all of supplier type)
Rights
Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
objectType required | string Enum: "supplierReportType" "deviceType" "supplierWebhook" "supplierCertificate" |
objectHashId required | string |
{- "objectType": "deviceType",
- "objectHashId": "wasd2"
}
{- "hashId": "dfa1p"
}
Search through connectivity environments. Not useful for machine accounts, as they only have access to a single connectivity environment
+{- "objectType": "deviceType",
- "objectHashId": "wasd2"
}
{- "hashId": "dfa1p"
}
Search through connectivity environments. Not useful for machine accounts, as they only have access to a single connectivity environment
object |
Api-Version required | integer Example: 5 |
+
# You can also use wget curl -X GET https://api.withthegrid.com/subscription/ \ @@ -4018,16 +4020,16 @@Headers
-H 'Api-Version: 5' \ -H 'Authorization: Bearer {access-token}' -
{- "nextPageOffset": null,
- "rows": [
- {
- "objectName": "My device",
- "subscription": {
- "hashId": "dfa1p",
- "objectType": "deviceType",
- "objectHashId": "wasd2",
- "lastNotification": "2020-01-31T11:17Z",
- "alertsSinceLastNotification": 0,
- "createdAt": "2019-12-31T15:23Z"
}, - "supplier": {
- "hashId": "f1a4w1",
- "name": "My connectivity environment",
- "enforceTwoFactorAuthentication": false,
- "theme": {
- "light": {
- "primary": "#ff00ff",
- "secondary": "#ff00ff",
- "accent": "#ff00ff",
- "error": "#ff00ff",
- "warning": "#ff00ff",
- "info": "#ff00ff",
- "success": "#ff00ff",
- "neutral": "#ff00ff"
}, - "dark": {
- "primary": "#ff00ff",
- "secondary": "#ff00ff",
- "accent": "#ff00ff",
- "error": "#ff00ff",
- "warning": "#ff00ff",
- "info": "#ff00ff",
- "success": "#ff00ff",
- "neutral": "#ff00ff"
}
}, - "createdAt": "2019-12-31T15:23Z"
}
}
]
}
{- "nextPageOffset": null,
- "rows": [
- {
- "objectName": "My device",
- "subscription": {
- "hashId": "dfa1p",
- "objectType": "deviceType",
- "objectHashId": "wasd2",
- "lastNotification": "2020-01-31T11:17Z",
- "alertsSinceLastNotification": 0,
- "createdAt": "2019-12-31T15:23Z"
}, - "supplier": {
- "hashId": "f1a4w1",
- "name": "My connectivity environment",
- "enforceTwoFactorAuthentication": false,
- "theme": {
- "light": {
- "primary": "#ff00ff",
- "secondary": "#ff00ff",
- "accent": "#ff00ff",
- "error": "#ff00ff",
- "warning": "#ff00ff",
- "info": "#ff00ff",
- "success": "#ff00ff",
- "neutral": "#ff00ff"
}, - "dark": {
- "primary": "#ff00ff",
- "secondary": "#ff00ff",
- "accent": "#ff00ff",
- "error": "#ff00ff",
- "warning": "#ff00ff",
- "info": "#ff00ff",
- "success": "#ff00ff",
- "neutral": "#ff00ff"
}
}, - "createdAt": "2019-12-31T15:23Z"
}
}
]
}
Delete a subscription.
hashId required | string Example: l19a7s |
Api-Version required | integer Example: 5 |
+
# You can also use wget curl -X DELETE https://api.withthegrid.com/subscription/{hashId} \ -H 'Api-Version: 5' \ -H 'Authorization: Bearer {access-token}' -
Get suggestions for field of type, filtered by search
Rights
Connectivity environment: ENVIRONMENT_ADMIN
@@ -4036,7 +4038,7 @@object |
Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
+
# You can also use wget curl -X GET https://api.withthegrid.com/suggestions/ \ @@ -4045,15 +4047,15 @@Headers
-H 'Api-Version: 5' \ -H 'Authorization: Bearer {access-token}' -
{- "results": [
- "Installed v1.1.0-rc4",
- "Installed v1.1.0-rc5",
- "Installed v1.1.0-rc6"
]
}
Create a connectivity environment to connect external systems and individual IoT devices to our application, which can be used in one or more monitoring environments
Api-Version required | integer Example: 5 |
name required | string |
{- "name": "My connectivity environment"
}
{- "supplier": {
- "hashId": "f1a4w1",
- "name": "My connectivity environment",
- "enforceTwoFactorAuthentication": false,
- "theme": {
- "light": {
- "primary": "#ff00ff",
- "secondary": "#ff00ff",
- "accent": "#ff00ff",
- "error": "#ff00ff",
- "warning": "#ff00ff",
- "info": "#ff00ff",
- "success": "#ff00ff",
- "neutral": "#ff00ff"
}, - "dark": {
- "primary": "#ff00ff",
- "secondary": "#ff00ff",
- "accent": "#ff00ff",
- "error": "#ff00ff",
- "warning": "#ff00ff",
- "info": "#ff00ff",
- "success": "#ff00ff",
- "neutral": "#ff00ff"
}
}, - "createdAt": "2019-12-31T15:23Z"
}, - "supplierRights": [
- "STATIC",
- "USERS"
]
}
{- "name": "My connectivity environment"
}
{- "supplier": {
- "hashId": "f1a4w1",
- "name": "My connectivity environment",
- "enforceTwoFactorAuthentication": false,
- "theme": {
- "light": {
- "primary": "#ff00ff",
- "secondary": "#ff00ff",
- "accent": "#ff00ff",
- "error": "#ff00ff",
- "warning": "#ff00ff",
- "info": "#ff00ff",
- "success": "#ff00ff",
- "neutral": "#ff00ff"
}, - "dark": {
- "primary": "#ff00ff",
- "secondary": "#ff00ff",
- "accent": "#ff00ff",
- "error": "#ff00ff",
- "warning": "#ff00ff",
- "info": "#ff00ff",
- "success": "#ff00ff",
- "neutral": "#ff00ff"
}
}, - "createdAt": "2019-12-31T15:23Z"
}, - "supplierRights": [
- "STATIC",
- "USERS"
]
}
Delete a connectivity environment. No user can access it afterwards.
Rights
Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
+
# You can also use wget curl -X DELETE https://api.withthegrid.com/supplier/ \ @@ -4061,9 +4063,9 @@Headers
-H 'Api-Version: 5' \ -H 'Authorization: Bearer {access-token}' -
Search through connectivity environments. Not useful for machine accounts, as they only have access to a single connectivity environment
object |
Api-Version required | integer Example: 5 |
+
# You can also use wget curl -X GET https://api.withthegrid.com/supplier/ \ @@ -4071,15 +4073,15 @@Headers
-H 'Api-Version: 5' \ -H 'Authorization: Bearer {access-token}' -
{- "nextPageOffset": null,
- "rows": [
- {
- "supplier": {
- "hashId": "f1a4w1",
- "name": "My connectivity environment",
- "enforceTwoFactorAuthentication": false,
- "theme": {
- "light": {
- "primary": "#ff00ff",
- "secondary": "#ff00ff",
- "accent": "#ff00ff",
- "error": "#ff00ff",
- "warning": "#ff00ff",
- "info": "#ff00ff",
- "success": "#ff00ff",
- "neutral": "#ff00ff"
}, - "dark": {
- "primary": "#ff00ff",
- "secondary": "#ff00ff",
- "accent": "#ff00ff",
- "error": "#ff00ff",
- "warning": "#ff00ff",
- "info": "#ff00ff",
- "success": "#ff00ff",
- "neutral": "#ff00ff"
}
}, - "createdAt": "2019-12-31T15:23Z"
}, - "supplierRights": [
- "STATIC",
- "USERS"
]
}
]
}
{- "nextPageOffset": null,
- "rows": [
- {
- "supplier": {
- "hashId": "f1a4w1",
- "name": "My connectivity environment",
- "enforceTwoFactorAuthentication": false,
- "theme": {
- "light": {
- "primary": "#ff00ff",
- "secondary": "#ff00ff",
- "accent": "#ff00ff",
- "error": "#ff00ff",
- "warning": "#ff00ff",
- "info": "#ff00ff",
- "success": "#ff00ff",
- "neutral": "#ff00ff"
}, - "dark": {
- "primary": "#ff00ff",
- "secondary": "#ff00ff",
- "accent": "#ff00ff",
- "error": "#ff00ff",
- "warning": "#ff00ff",
- "info": "#ff00ff",
- "success": "#ff00ff",
- "neutral": "#ff00ff"
}
}, - "createdAt": "2019-12-31T15:23Z"
}, - "supplierRights": [
- "STATIC",
- "USERS"
]
}
]
}
Rights
Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
name | string |
enforceTwoFactorAuthentication | boolean Describes if users need to have two factor authentication enabled in order to access this environment. |
object or null |
{- "name": "My connectivity environment",
- "enforceTwoFactorAuthentication": false,
- "theme": {
- "light": {
- "primary": "#ff00ff",
- "secondary": "#ff00ff",
- "accent": "#ff00ff",
- "error": "#ff00ff",
- "warning": "#ff00ff",
- "info": "#ff00ff",
- "success": "#ff00ff",
- "neutral": "#ff00ff"
}, - "dark": {
- "primary": "#ff00ff",
- "secondary": "#ff00ff",
- "accent": "#ff00ff",
- "error": "#ff00ff",
- "warning": "#ff00ff",
- "info": "#ff00ff",
- "success": "#ff00ff",
- "neutral": "#ff00ff"
}
}
}
{- "name": "My connectivity environment",
- "enforceTwoFactorAuthentication": false,
- "theme": {
- "light": {
- "primary": "#ff00ff",
- "secondary": "#ff00ff",
- "accent": "#ff00ff",
- "error": "#ff00ff",
- "warning": "#ff00ff",
- "info": "#ff00ff",
- "success": "#ff00ff",
- "neutral": "#ff00ff"
}, - "dark": {
- "primary": "#ff00ff",
- "secondary": "#ff00ff",
- "accent": "#ff00ff",
- "error": "#ff00ff",
- "warning": "#ff00ff",
- "info": "#ff00ff",
- "success": "#ff00ff",
- "neutral": "#ff00ff"
}
}
}
Get a specific connectivity environment identified by its hashId
hashId required | string Example: f1a4w1 |
Api-Version required | integer Example: 5 |
+
# You can also use wget curl -X GET https://api.withthegrid.com/supplier/{hashId} \ @@ -4087,13 +4089,13 @@Headers
-H 'Api-Version: 5' \ -H 'Authorization: Bearer {access-token}' -
{- "supplier": {
- "hashId": "f1a4w1",
- "name": "My connectivity environment",
- "enforceTwoFactorAuthentication": false,
- "theme": {
- "light": {
- "primary": "#ff00ff",
- "secondary": "#ff00ff",
- "accent": "#ff00ff",
- "error": "#ff00ff",
- "warning": "#ff00ff",
- "info": "#ff00ff",
- "success": "#ff00ff",
- "neutral": "#ff00ff"
}, - "dark": {
- "primary": "#ff00ff",
- "secondary": "#ff00ff",
- "accent": "#ff00ff",
- "error": "#ff00ff",
- "warning": "#ff00ff",
- "info": "#ff00ff",
- "success": "#ff00ff",
- "neutral": "#ff00ff"
}
}, - "createdAt": "2019-12-31T15:23Z"
}, - "supplierRights": [
- "STATIC",
- "USERS"
]
}
{- "supplier": {
- "hashId": "f1a4w1",
- "name": "My connectivity environment",
- "enforceTwoFactorAuthentication": false,
- "theme": {
- "light": {
- "primary": "#ff00ff",
- "secondary": "#ff00ff",
- "accent": "#ff00ff",
- "error": "#ff00ff",
- "warning": "#ff00ff",
- "info": "#ff00ff",
- "success": "#ff00ff",
- "neutral": "#ff00ff"
}, - "dark": {
- "primary": "#ff00ff",
- "secondary": "#ff00ff",
- "accent": "#ff00ff",
- "error": "#ff00ff",
- "warning": "#ff00ff",
- "info": "#ff00ff",
- "success": "#ff00ff",
- "neutral": "#ff00ff"
}
}, - "createdAt": "2019-12-31T15:23Z"
}, - "supplierRights": [
- "STATIC",
- "USERS"
]
}
Search through activity in the connectivity environment
Rights
object |
Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
+
# You can also use wget curl -X GET https://api.withthegrid.com/supplier-activity/ \ @@ -4102,13 +4104,13 @@Headers
-H 'Api-Version: 5' \ -H 'Authorization: Bearer {access-token}' -
{- "nextPageOffset": null,
- "rows": [
- {
- "activity": {
- "hashId": "2ad91p",
- "createdAt": "2019-12-31T15:23Z",
- "triggerType": "handleIncomingRequest",
- "failed": false
}, - "device": {
- "hashId": "j1iha9",
- "supplierHashId": "f1a4w1",
- "supplierDeviceIdentifier": "390044000351352237353037",
- "deviceTypeHashId": "wasd2",
- "fields": { },
- "measurementCycle": null,
- "nextReportBefore": "2019-12-31T15:25Z",
- "lastOnlineAt": "2019-12-31T15:23Z",
- "validated": true,
- "userFacingIdentifier": "Field value"
}, - "deviceType": {
- "hashId": "wasd2",
- "name": "untranslated string",
- "fieldConfigurations": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "pinGroupFieldConfigurations": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "channels": [
- {
- "name": "untranslated string",
- "pinFieldConfigurations": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "defaultPinName": "untranslated string",
- "charts": [
- {
- "title": "untranslated string",
- "series": [
- {
- "quantityHashId": null,
- "color": null
}
]
}
]
}
], - "charts": [
- {
- "title": "untranslated string",
- "series": [
- {
- "channelIndex": 0,
- "quantityHashId": "x18a92",
- "color": "#ff00ff"
}
]
}
], - "commandTypeHashIds": [
- "x18a92"
], - "identifierFieldKey": "fieldKey"
}
}
]
}
{- "nextPageOffset": null,
- "rows": [
- {
- "activity": {
- "hashId": "2ad91p",
- "createdAt": "2019-12-31T15:23Z",
- "triggerType": "handleIncomingRequest",
- "failed": false
}, - "device": {
- "hashId": "j1iha9",
- "supplierHashId": "f1a4w1",
- "supplierDeviceIdentifier": "390044000351352237353037",
- "deviceTypeHashId": "wasd2",
- "fields": { },
- "measurementCycle": null,
- "nextReportBefore": "2019-12-31T15:25Z",
- "lastOnlineAt": "2019-12-31T15:23Z",
- "validated": true,
- "userFacingIdentifier": "Field value"
}, - "deviceType": {
- "hashId": "wasd2",
- "name": "untranslated string",
- "fieldConfigurations": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "pinGroupFieldConfigurations": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "channels": [
- {
- "name": "untranslated string",
- "pinFieldConfigurations": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "defaultPinName": "untranslated string",
- "charts": [
- {
- "title": "untranslated string",
- "series": [
- {
- "quantityHashId": null,
- "color": null
}
]
}
]
}
], - "charts": [
- {
- "title": "untranslated string",
- "series": [
- {
- "channelIndex": 0,
- "quantityHashId": "x18a92",
- "color": "#ff00ff"
}
]
}
], - "commandTypeHashIds": [
- "x18a92"
], - "identifierFieldKey": "fieldKey"
}
}
]
}
Get a specific activity in the connectivity environment
Rights
hashId required | string Example: 2ad91p |
Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
+
# You can also use wget curl -X GET https://api.withthegrid.com/supplier-activity/{hashId} \ @@ -4117,7 +4119,7 @@Headers
-H 'Api-Version: 5' \ -H 'Authorization: Bearer {access-token}' -
{- "device": {
- "hashId": "j1iha9",
- "supplierHashId": "f1a4w1",
- "supplierDeviceIdentifier": "390044000351352237353037",
- "deviceTypeHashId": "wasd2",
- "fields": { },
- "measurementCycle": null,
- "nextReportBefore": "2019-12-31T15:25Z",
- "lastOnlineAt": "2019-12-31T15:23Z",
- "validated": true,
- "userFacingIdentifier": "Field value"
}, - "deviceType": {
- "hashId": "wasd2",
- "name": "untranslated string",
- "fieldConfigurations": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "pinGroupFieldConfigurations": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "channels": [
- {
- "name": "untranslated string",
- "pinFieldConfigurations": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "defaultPinName": "untranslated string",
- "charts": [
- {
- "title": "untranslated string",
- "series": [
- {
- "quantityHashId": "x18a92",
- "color": "#ff00ff"
}
]
}
]
}
], - "charts": [
- {
- "title": "untranslated string",
- "series": [
- {
- "channelIndex": 0,
- "quantityHashId": "x18a92",
- "color": "#ff00ff"
}
]
}
], - "commandTypeHashIds": [
- "x18a92"
], - "identifierFieldKey": "fieldKey"
}, - "activity": {
- "hashId": "2ad91p",
- "rootActivityHashId": "2ad91p",
- "createdAt": "2019-12-31T15:23Z",
- "triggerType": "dropCommand",
- "failed": false,
- "log": [
- {
- "type": "log",
- "message": "Debug information: [..]",
- "lineNumber": 0,
- "columnNumber": 0
}
], - "triggerData": {
- "command": {
- "hashId": "ga9741s",
- "deviceHashId": "j1iha9",
- "commandTypeHashId": "x18a92",
- "fields": { },
- "pinGroupHashId": "dao97",
- "userHashId": "b45zo0",
- "startAt": "2019-12-31T15:23Z",
- "delay": 0,
- "endAt": null,
- "channelIndices": [
- 0,
- 2
], - "email": [
- "info@acme.com"
], - "createdAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "sentAt": "2019-12-31T15:23Z"
}, - "commandType": {
- "hashId": "x18a92",
- "name": "untranslated string",
- "start": "required",
- "end": "disabled",
- "fieldConfigurations": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "channelSelect": "off",
- "environmentAccess": "none"
}, - "removeFromScheduledCommands": true,
- "markAsDeleted": false
}
}
}
{- "device": {
- "hashId": "j1iha9",
- "supplierHashId": "f1a4w1",
- "supplierDeviceIdentifier": "390044000351352237353037",
- "deviceTypeHashId": "wasd2",
- "fields": { },
- "measurementCycle": null,
- "nextReportBefore": "2019-12-31T15:25Z",
- "lastOnlineAt": "2019-12-31T15:23Z",
- "validated": true,
- "userFacingIdentifier": "Field value"
}, - "deviceType": {
- "hashId": "wasd2",
- "name": "untranslated string",
- "fieldConfigurations": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "pinGroupFieldConfigurations": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "channels": [
- {
- "name": "untranslated string",
- "pinFieldConfigurations": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "defaultPinName": "untranslated string",
- "charts": [
- {
- "title": "untranslated string",
- "series": [
- {
- "quantityHashId": "x18a92",
- "color": "#ff00ff"
}
]
}
]
}
], - "charts": [
- {
- "title": "untranslated string",
- "series": [
- {
- "channelIndex": 0,
- "quantityHashId": "x18a92",
- "color": "#ff00ff"
}
]
}
], - "commandTypeHashIds": [
- "x18a92"
], - "identifierFieldKey": "fieldKey"
}, - "activity": {
- "hashId": "2ad91p",
- "rootActivityHashId": "2ad91p",
- "createdAt": "2019-12-31T15:23Z",
- "triggerType": "dropCommand",
- "failed": false,
- "log": [
- {
- "type": "log",
- "message": "Debug information: [..]",
- "lineNumber": 0,
- "columnNumber": 0
}
], - "triggerData": {
- "command": {
- "hashId": "ga9741s",
- "deviceHashId": "j1iha9",
- "commandTypeHashId": "x18a92",
- "fields": { },
- "pinGroupHashId": "dao97",
- "userHashId": "b45zo0",
- "startAt": "2019-12-31T15:23Z",
- "delay": 0,
- "endAt": null,
- "channelIndices": [
- 0,
- 2
], - "email": [
- "info@acme.com"
], - "createdAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "sentAt": "2019-12-31T15:23Z"
}, - "commandType": {
- "hashId": "x18a92",
- "name": "untranslated string",
- "start": "required",
- "end": "disabled",
- "fieldConfigurations": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "channelSelect": "off",
- "environmentAccess": "none"
}, - "removeFromScheduledCommands": true,
- "markAsDeleted": false
}
}
}
Add a certificate to the connectivity environment that can be used to create device client certificates.
Rights
Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
csr required | string A Base64 encoded PKCS#10 certificate signing request |
identifier required | string <= 1000000 characters A javascript function that returns deviceType and identifier. See the chapter "User defined code" |
{- "csr": "-----BEGIN CERTIFICATE REQUEST-----\nMIHhMIGHAgEAMCUxEjAQBgNVBAoMCWRldmVsb3BlcjEPMA0GA1UEAwwGeGQycmQ0\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEyHDE7farWQdLw/HDgOcbt9BU8ba6\nfEvEY79Z47ozYQ6LAt6wYEW/4Aq4Eir1kSCw/DtououtnpaQokZQkGYf2aAAMAoG\nCCqGSM49BAMCA0kAMEYCIQCHf/bilJwxF+7V/0mifsXK4U0PUHDe0YNBorb2dBzc\nKAIhAK59odu1i8oxIJg237EOLKbf0k/Rhub/CKPrsQ50t0lK\n-----END CERTIFICATE REQUEST-----",
- "identifier": "function (command) {\n return JSON.stringify({\n hashId: command.hashId,\n commandTypeHashId: command.commandTypeHashId,\n startAt: command.startAt,\n endAt: command.endAt,\n settings: command.settings,\n });\n}"
}
{- "hashId": "v19a12",
- "certificate": "-----BEGIN CERTIFICATE-----\nMIIBNzCB3gIBATAKBggqhkjOPQQDAjAkMREwDwYDVQQKDAhzdXBwbGllcjEPMA0G\nA1UEAwwGeGQycmQ0MB4XDTIwMDIyNDEzNTQwOVoXDTIxMDIyMzEzNTQwOVowLDEP\nMA0GA1UECgwGZGV2aWNlMRkwFwYDVQQDDBB1bnFpZSBpZGVudGlmaWVyMFkwEwYH\nKoZIzj0CAQYIKoZIzj0DAQcDQgAEUPyQwLuDlKw7CA41ADhxXRvD3n9ZFF0XCeI9\nOAgRIgl2mGmnO31wX1DD4weZoB2pswCBrC39FpyHgIz6LK10PzAKBggqhkjOPQQD\nAgNIADBFAiEAyz0Ha4eFfebqSoES4vxguipSHmR/zN8KjEEie7xpqo8CICFS5NWG\niaT6xhGfChGbQjpmQQYYabau8Ons8F2JNyLu\n-----END CERTIFICATE-----\n",
- "subscriptionHashId": "string"
}
{- "csr": "-----BEGIN CERTIFICATE REQUEST-----\nMIHhMIGHAgEAMCUxEjAQBgNVBAoMCWRldmVsb3BlcjEPMA0GA1UEAwwGeGQycmQ0\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEyHDE7farWQdLw/HDgOcbt9BU8ba6\nfEvEY79Z47ozYQ6LAt6wYEW/4Aq4Eir1kSCw/DtououtnpaQokZQkGYf2aAAMAoG\nCCqGSM49BAMCA0kAMEYCIQCHf/bilJwxF+7V/0mifsXK4U0PUHDe0YNBorb2dBzc\nKAIhAK59odu1i8oxIJg237EOLKbf0k/Rhub/CKPrsQ50t0lK\n-----END CERTIFICATE REQUEST-----",
- "identifier": "function (command) {\n return JSON.stringify({\n hashId: command.hashId,\n commandTypeHashId: command.commandTypeHashId,\n startAt: command.startAt,\n endAt: command.endAt,\n settings: command.settings,\n });\n}"
}
{- "hashId": "v19a12",
- "certificate": "-----BEGIN CERTIFICATE-----\nMIIBNzCB3gIBATAKBggqhkjOPQQDAjAkMREwDwYDVQQKDAhzdXBwbGllcjEPMA0G\nA1UEAwwGeGQycmQ0MB4XDTIwMDIyNDEzNTQwOVoXDTIxMDIyMzEzNTQwOVowLDEP\nMA0GA1UECgwGZGV2aWNlMRkwFwYDVQQDDBB1bnFpZSBpZGVudGlmaWVyMFkwEwYH\nKoZIzj0CAQYIKoZIzj0DAQcDQgAEUPyQwLuDlKw7CA41ADhxXRvD3n9ZFF0XCeI9\nOAgRIgl2mGmnO31wX1DD4weZoB2pswCBrC39FpyHgIz6LK10PzAKBggqhkjOPQQD\nAgNIADBFAiEAyz0Ha4eFfebqSoES4vxguipSHmR/zN8KjEEie7xpqo8CICFS5NWG\niaT6xhGfChGbQjpmQQYYabau8Ons8F2JNyLu\n-----END CERTIFICATE-----\n",
- "subscriptionHashId": "string"
}
Search through certificates
Rights
object |
Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
+
# You can also use wget curl -X GET https://api.withthegrid.com/supplier-certificate/ \ @@ -4140,13 +4142,13 @@Headers
-H 'Api-Version: 5' \ -H 'Authorization: Bearer {access-token}' -
{- "nextPageOffset": null,
- "rows": [
- {
- "certificate": {
- "hashId": "v19a12",
- "name": "My certificate",
- "createdAt": "2019-12-31T15:23Z"
}
}
]
}
{- "nextPageOffset": null,
- "rows": [
- {
- "certificate": {
- "hashId": "v19a12",
- "name": "My certificate",
- "createdAt": "2019-12-31T15:23Z"
}
}
]
}
Delete a certificate from a connectivity environment. When the certificate has been removed, access to the application by devices with a device certificate signed by this intermediate certificate is rejected.
Rights
hashId required | string Example: v19a12 |
Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
+
# You can also use wget curl -X DELETE https://api.withthegrid.com/supplier-certificate/{hashId} \ @@ -4154,13 +4156,13 @@Headers
-H 'Api-Version: 5' \ -H 'Authorization: Bearer {access-token}' -
Get a specific certificate identified by its hashId
Rights
hashId required | string Example: f1a4w1 |
Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
+
# You can also use wget curl -X GET https://api.withthegrid.com/supplier-certificate/{hashId} \ @@ -4169,14 +4171,14 @@Headers
-H 'Api-Version: 5' \ -H 'Authorization: Bearer {access-token}' -
{- "certificate": {
- "hashId": "v19a12",
- "name": "My certificate",
- "certificate": "-----BEGIN CERTIFICATE-----\n MIIBNzCB3gIBATAKBggqhkjOPQQDAjAkMREwDwYDVQQKDAhzdXBwbGllcjEPMA0G\n A1UEAwwGeGQycmQ0MB4XDTIwMDIyNDEzNTQwOVoXDTIxMDIyMzEzNTQwOVowLDEP\n MA0GA1UECgwGZGV2aWNlMRkwFwYDVQQDDBB1bnFpZSBpZGVudGlmaWVyMFkwEwYH\n KoZIzj0CAQYIKoZIzj0DAQcDQgAEUPyQwLuDlKw7CA41ADhxXRvD3n9ZFF0XCeI9\n OAgRIgl2mGmnO31wX1DD4weZoB2pswCBrC39FpyHgIz6LK10PzAKBggqhkjOPQQD\n AgNIADBFAiEAyz0Ha4eFfebqSoES4vxguipSHmR/zN8KjEEie7xpqo8CICFS5NWG\n iaT6xhGfChGbQjpmQQYYabau8Ons8F2JNyLu\n -----END CERTIFICATE-----\n ",
- "createdAt": "2019-12-31T15:23Z"
}, - "identifier": "function (command) {\n return JSON.stringify({\n hashId: command.hashId,\n commandTypeHashId: command.commandTypeHashId,\n startAt: command.startAt,\n endAt: command.endAt,\n settings: command.settings,\n });\n}",
- "subscriptionHashId": "string"
}
{- "certificate": {
- "hashId": "v19a12",
- "name": "My certificate",
- "certificate": "-----BEGIN CERTIFICATE-----\n MIIBNzCB3gIBATAKBggqhkjOPQQDAjAkMREwDwYDVQQKDAhzdXBwbGllcjEPMA0G\n A1UEAwwGeGQycmQ0MB4XDTIwMDIyNDEzNTQwOVoXDTIxMDIyMzEzNTQwOVowLDEP\n MA0GA1UECgwGZGV2aWNlMRkwFwYDVQQDDBB1bnFpZSBpZGVudGlmaWVyMFkwEwYH\n KoZIzj0CAQYIKoZIzj0DAQcDQgAEUPyQwLuDlKw7CA41ADhxXRvD3n9ZFF0XCeI9\n OAgRIgl2mGmnO31wX1DD4weZoB2pswCBrC39FpyHgIz6LK10PzAKBggqhkjOPQQD\n AgNIADBFAiEAyz0Ha4eFfebqSoES4vxguipSHmR/zN8KjEEie7xpqo8CICFS5NWG\n iaT6xhGfChGbQjpmQQYYabau8Ons8F2JNyLu\n -----END CERTIFICATE-----\n ",
- "createdAt": "2019-12-31T15:23Z"
}, - "identifier": "function (command) {\n return JSON.stringify({\n hashId: command.hashId,\n commandTypeHashId: command.commandTypeHashId,\n startAt: command.startAt,\n endAt: command.endAt,\n settings: command.settings,\n });\n}",
- "subscriptionHashId": "string"
}
Update the properties of a certificate.
Rights
hashId required | string Example: v19a12 |
Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
identifier | string <= 1000000 characters A javascript function that returns deviceType and identifier. See the chapter "User defined code" |
{- "identifier": "string"
}
Create a report type that devices can send in
Rights
Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
required | untranslatedString (string) or translations (object) (stringOrTranslations) |
required | object See the chapter on open fields on how to use this |
parser required | string <= 1000000 characters A javascript function that parses an incoming report. See the chapter "User defined code" |
{- "name": "untranslated string",
- "fieldConfigurations": {
- "pinGroup": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "pin": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "measurement": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
]
}, - "parser": "[omitted]"
}
{- "hashId": "y124as",
- "subscriptionHashId": "string"
}
{- "name": "untranslated string",
- "fieldConfigurations": {
- "pinGroup": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "pin": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "measurement": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
]
}, - "parser": "[omitted]"
}
{- "hashId": "y124as",
- "subscriptionHashId": "string"
}
Search through device report types
Rights
object |
Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
+
# You can also use wget curl -X GET https://api.withthegrid.com/supplier-report-type/ \ @@ -4199,13 +4201,13 @@Headers
-H 'Api-Version: 5' \ -H 'Authorization: Bearer {access-token}' -
{- "nextPageOffset": null,
- "rows": [
- {
- "reportType": {
- "hashId": "l19a7s",
- "name": "untranslated string",
- "fieldConfigurations": {
- "pinGroup": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "pin": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "measurement": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
]
}, - "deletedAt": null
}
}
]
}
{- "nextPageOffset": null,
- "rows": [
- {
- "reportType": {
- "hashId": "l19a7s",
- "name": "untranslated string",
- "fieldConfigurations": {
- "pinGroup": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "pin": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "measurement": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
]
}, - "deletedAt": null
}
}
]
}
Delete a device report type.
Rights
hashId required | string Example: y124as |
Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
+
# You can also use wget curl -X DELETE https://api.withthegrid.com/supplier-report-type/{hashId} \ @@ -4213,13 +4215,13 @@Headers
-H 'Api-Version: 5' \ -H 'Authorization: Bearer {access-token}' -
Get a specific device report type identified by its hashId
Rights
hashId required | string Example: y124as |
Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
+
# You can also use wget curl -X GET https://api.withthegrid.com/supplier-report-type/{hashId} \ @@ -4228,7 +4230,7 @@Headers
-H 'Api-Version: 5' \ -H 'Authorization: Bearer {access-token}' -
{- "reportType": {
- "hashId": "l19a7s",
- "name": "untranslated string",
- "fieldConfigurations": {
- "pinGroup": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "pin": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "measurement": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
]
}, - "deletedAt": null
}, - "parser": "[omitted]",
- "subscriptionHashId": "string"
}
{- "reportType": {
- "hashId": "l19a7s",
- "name": "untranslated string",
- "fieldConfigurations": {
- "pinGroup": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "pin": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
], - "measurement": [
- {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
]
}, - "deletedAt": null
}, - "parser": "[omitted]",
- "subscriptionHashId": "string"
}
Update a device report type.
Rights
A javascript function that parses an incoming report. See the chapter "User defined code"
If supplied, all incoming reports of this type that failed to decode since the provided date will be reparsed.
{- "name": "untranslated string",
- "fieldConfigurations": {
- "pinGroup": [
- {
- "existingKey": "string",
- "fieldConfiguration": {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
}
], - "pin": [
- {
- "existingKey": "string",
- "fieldConfiguration": {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
}
], - "measurement": [
- {
- "existingKey": "string",
- "fieldConfiguration": {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
}
]
}, - "parser": "[omitted]",
- "retryFailedSince": "2019-08-24T14:15:22Z"
}
{- "name": "untranslated string",
- "fieldConfigurations": {
- "pinGroup": [
- {
- "existingKey": "string",
- "fieldConfiguration": {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
}
], - "pin": [
- {
- "existingKey": "string",
- "fieldConfiguration": {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
}
], - "measurement": [
- {
- "existingKey": "string",
- "fieldConfiguration": {
- "key": "id",
- "name": "untranslated string",
- "showIf": {
- "key": "string",
- "value": "string"
}, - "hint": "untranslated string",
- "allowNull": null,
- "valueOptions": null,
- "type": "string",
- "defaultValue": "string",
- "inputType": "text",
- "regex": "string",
- "prefix": "untranslated string",
- "suffix": "untranslated string"
}
}
]
}, - "parser": "[omitted]",
- "retryFailedSince": "2019-08-24T14:15:22Z"
}
Add a webhook to the connectivity environment.
Rights
Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
name required | string <= 255 characters |
identifier required | string <= 1000000 characters A javascript function that returns deviceType and identifier. See the chapter "User defined code" |
{- "name": "My webhook",
- "identifier": "function (command) {\n return JSON.stringify({\n hashId: command.hashId,\n commandTypeHashId: command.commandTypeHashId,\n startAt: command.startAt,\n endAt: command.endAt,\n settings: command.settings,\n });\n}"
}
{- "hashId": "z812a63",
- "subscriptionHashId": "string"
}
{- "name": "My webhook",
- "identifier": "function (command) {\n return JSON.stringify({\n hashId: command.hashId,\n commandTypeHashId: command.commandTypeHashId,\n startAt: command.startAt,\n endAt: command.endAt,\n settings: command.settings,\n });\n}"
}
{- "hashId": "z812a63",
- "subscriptionHashId": "string"
}
Search through webhooks
Rights
object |
Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
+
# You can also use wget curl -X GET https://api.withthegrid.com/supplier-webhook/ \ @@ -4259,13 +4261,13 @@Headers
-H 'Api-Version: 5' \ -H 'Authorization: Bearer {access-token}' -
{- "nextPageOffset": null,
- "rows": [
- {
- "webhook": {
- "hashId": "z812a63",
- "name": "My webhook",
- "createdAt": "2019-12-31T15:23Z"
},
}
]
}
{- "nextPageOffset": null,
- "rows": [
- {
- "webhook": {
- "hashId": "z812a63",
- "name": "My webhook",
- "createdAt": "2019-12-31T15:23Z"
},
}
]
}
Delete a webhook from a connectivity environment.
Rights
hashId required | string Example: z812a63 |
Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
+
# You can also use wget curl -X DELETE https://api.withthegrid.com/supplier-webhook/{hashId} \ @@ -4273,13 +4275,13 @@Headers
-H 'Api-Version: 5' \ -H 'Authorization: Bearer {access-token}' -
Get a specific webhook identified by its hashId
Rights
hashId required | string Example: f1a4w1 |
Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
+
# You can also use wget curl -X GET https://api.withthegrid.com/supplier-webhook/{hashId} \ @@ -4288,20 +4290,20 @@Headers
-H 'Api-Version: 5' \ -H 'Authorization: Bearer {access-token}' -
{- "webhook": {
- "hashId": "z812a63",
- "name": "My webhook",
- "createdAt": "2019-12-31T15:23Z"
}, - "identifier": "function (command) {\n return JSON.stringify({\n hashId: command.hashId,\n commandTypeHashId: command.commandTypeHashId,\n startAt: command.startAt,\n endAt: command.endAt,\n settings: command.settings,\n });\n}",
- "subscriptionHashId": "string"
}
{- "webhook": {
- "hashId": "z812a63",
- "name": "My webhook",
- "createdAt": "2019-12-31T15:23Z"
}, - "identifier": "function (command) {\n return JSON.stringify({\n hashId: command.hashId,\n commandTypeHashId: command.commandTypeHashId,\n startAt: command.startAt,\n endAt: command.endAt,\n settings: command.settings,\n });\n}",
- "subscriptionHashId": "string"
}
Update the properties of a webhook.
Rights
hashId required | string Example: v19a12 |
Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
name | string |
identifier | string <= 1000000 characters A javascript function that returns deviceType and identifier. See the chapter "User defined code" |
{- "name": "My webhook",
- "identifier": "string"
}
Checks whether user entered correct code from authenticator app and enables 2FA for user. The existing JWT cannot be used in the Authorization header anymore, instead the returned JWT must be used.
+{- "name": "My webhook",
- "identifier": "string"
}
Checks whether user entered correct code from authenticator app and enables 2FA for user. The existing JWT cannot be used in the Authorization header anymore, instead the returned JWT must be used.
Api-Version required | integer Example: 5 |
code required | string <= 255 characters |
{- "code": "123456"
}
{- "jwt": "a1234"
}
Generates a secret and keyuri for user to set up 2FA
Api-Version required | integer Example: 5 |
password required | string |
{- "password": "imapassword"
}
{- "keyuri": "iamkeyuri",
- "secret": "iamsecret"
}
Add a user to a monitoring environment or a connectivity environment.
Rights
Connectivity environment: ENVIRONMENT_ADMIN
@@ -4311,7 +4313,7 @@Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
name required | string <= 255 characters |
email required | string <email> |
rights required | Array of strings See the getting started section about rights |
{- "name": "John Doe",
- "email": "info@acme.com",
- "rights": [
- "STATIC",
- "USERS"
]
}
{- "hashId": "b45zo0"
}
Search through users wihtin a monitoring environment or a connectivity environment
Rights
Connectivity environment: ENVIRONMENT_ADMIN
@@ -4320,7 +4322,7 @@object |
Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
+
# You can also use wget curl -X GET https://api.withthegrid.com/user/ \ @@ -4329,7 +4331,7 @@Headers
-H 'Api-Version: 5' \ -H 'Authorization: Bearer {access-token}' -
{- "nextPageOffset": null,
- "rows": [
- {
- "user": {
- "hashId": "b45zo0",
- "email": "info@acme.com",
- "name": "John Doe",
- "timezone": "Europe/Amsterdam",
- "locale": "en",
- "phone": "string",
- "company": "string",
- "rights": [
- "STATIC",
- "USERS"
], - "twoFactorAuthenticationEnabled": true
}, - "rights": [
- "STATIC",
- "USERS"
]
}
]
}
{- "nextPageOffset": null,
- "rows": [
- {
- "user": {
- "hashId": "b45zo0",
- "email": "info@acme.com",
- "name": "John Doe",
- "timezone": "Europe/Amsterdam",
- "locale": "en",
- "phone": "string",
- "company": "string",
- "rights": [
- "STATIC",
- "USERS"
], - "twoFactorAuthenticationEnabled": true
}, - "rights": [
- "STATIC",
- "USERS"
]
}
]
}
Delete a user from a monitoring environment or a connectivity environment.
Rights
Connectivity environment: ENVIRONMENT_ADMIN
@@ -4338,7 +4340,7 @@hashId required | string Example: b45zo0 |
Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
+
# You can also use wget curl -X DELETE https://api.withthegrid.com/user/{hashId} \ @@ -4346,7 +4348,7 @@Headers
-H 'Api-Version: 5' \ -H 'Authorization: Bearer {access-token}' -
Get a specific user identified by its hashId
Rights
Connectivity environment: ENVIRONMENT_ADMIN
@@ -4355,7 +4357,7 @@hashId required | string Example: b45zo0 |
Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
+
# You can also use wget curl -X GET https://api.withthegrid.com/user/{hashId} \ @@ -4364,7 +4366,7 @@Headers
-H 'Api-Version: 5' \ -H 'Authorization: Bearer {access-token}' -
{- "user": {
- "hashId": "b45zo0",
- "email": "info@acme.com",
- "name": "John Doe",
- "timezone": "Europe/Amsterdam",
- "locale": "en",
- "phone": "string",
- "company": "string",
- "rights": [
- "STATIC",
- "USERS"
], - "twoFactorAuthenticationEnabled": true
}, - "rights": [
- "STATIC",
- "USERS"
]
}
{- "user": {
- "hashId": "b45zo0",
- "email": "info@acme.com",
- "name": "John Doe",
- "timezone": "Europe/Amsterdam",
- "locale": "en",
- "phone": "string",
- "company": "string",
- "rights": [
- "STATIC",
- "USERS"
], - "twoFactorAuthenticationEnabled": true
}, - "rights": [
- "STATIC",
- "USERS"
]
}
Update the rights of a user for this monitoring environment or connectivity environment.
Rights
Connectivity environment: ENVIRONMENT_ADMIN
@@ -4374,7 +4376,7 @@hashId required | string Example: b45zo0 |
Environment-Hash-Id required | string Example: yourAssetEnvironmentHashId |
Api-Version required | integer Example: 5 |
rights required | Array of strings See the getting started section about rights |
{- "rights": [
- "STATIC",
- "USERS"
]
}
hashId required | string |
title required | string <= 100 characters |
Array of objects Default: [] | |
required | Array of objects |
{- "hashId": "j1iha9",
- "title": "My dashboard",
- "layout": [ ],
- "cards": [
- {
- "title": "My widget",
- "subtitle": "My widget description",
- "query": {
- "source": "pinGroup",
- "columns": [
- {
- "field": "pinGroup.hashId",
- "name": "string",
- "dataTypeHint": "string"
}
], - "filter": {
- "type": "or",
- "restrictions": [
- {
- "type": "or",
- "restrictions": "{}"
}
]
}, - "limitBy": {
- "limitedTo": 0,
- "per": [ ],
- "sortedBy": [ ]
}, - "offset": "string",
- "sort": [ ],
- "rowsPerPage": 20
}, - "visualisation": {
- "colors": [
- "#202f0c"
], - "xAxisColumnIndex": null,
- "forceOrdinal": false,
- "showAllXAxisLabels": false,
- "type": "line",
- "yMin": 10,
- "yMax": 10
}
}
]
}
source required | string |
required | Array of objects or objects or objects or objects |
object | |
object | |
offset | string |
Array of objects | |
rowsPerPage | number <float> [ 10 .. 100 ] Default: 20 |
{- "source": "pinGroup",
- "columns": [
- {
- "field": "pinGroup.hashId",
- "name": "string",
- "dataTypeHint": "string"
}
], - "filter": {
- "type": "or",
- "restrictions": [
- {
- "type": "or",
- "restrictions": "{}"
}
]
}, - "limitBy": {
- "limitedTo": 0,
- "per": [ ],
- "sortedBy": [ ]
}, - "offset": "string",
- "sort": [ ],
- "rowsPerPage": 20
}
colors required | Array of strings |
xAxisColumnIndex required | integer or null |
forceOrdinal required | boolean |
showAllXAxisLabels | boolean Default: false |
type required | string Enum: "line" "scatter" |
yMin | number or null <float> |
yMax | number or null <float> |
{- "type": "table"
}
title required | string or null |
required | Array of objects |
{- "title": null,
- "series": [
- {
- "quantity": {
- "hashId": "sajia1",
- "name": "untranslated string",
- "color": "#ff00ff",
- "unit": "K",
- "defaultOrderOfMagnitude": -3,
- "defaultCriticallyLowThreshold": {
- "orderOfMagnitude": 0,
- "significand": 1500
}, - "defaultLowThreshold": {
- "orderOfMagnitude": 0,
- "significand": 1500
}, - "defaultHighThreshold": {
- "orderOfMagnitude": 0,
- "significand": 1500
}, - "defaultCriticallyHighThreshold": {
- "orderOfMagnitude": 0,
- "significand": 1500
}, - "disableSiPrefixes": true
}, - "pin": {
- "hashId": "e13d57",
- "pinGroupHashId": "dao97",
- "name": "My port",
- "fields": {
- "id": "My port"
}, - "deviceFields": { },
- "level": 0,
- "edgeHashId": "string",
- "nodeHashId": "string",
- "typeKey": "string",
- "deletedAt": "2019-12-31T15:23Z"
}, - "pinGroup": {
- "hashId": "dao97",
- "geometry": {
- "type": "Point",
- "coordinates": [
- 4.884707950517225,
- 52.37502141913572
]
}, - "name": "My location",
- "symbolKey": "cp-pole",
- "deviceFields": { },
- "fields": {
- "id": "My location"
}, - "deviceLinkHashId": null,
- "level": 0,
- "mapLayer": "myLayer",
- "mostRecentMeasurementAt": null,
- "deletedAt": null
}, - "color": "#ff0000",
- "pinThreshold": {
- "criticallyLow": {
- "orderOfMagnitude": 0,
- "significand": 1500
}, - "low": {
- "orderOfMagnitude": 0,
- "significand": 1500
}, - "high": {
- "orderOfMagnitude": 0,
- "significand": 1500
}, - "criticallyHigh": {
- "orderOfMagnitude": 0,
- "significand": 1500
}, - "hashId": "tap192",
- "pinHashId": "e13d57"
}
}
]
}
hashId required | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deviceHashId required | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
commandTypeHashId required | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fields required | object How form fields are returned by the server. +Request samples
Content type text/json {
{
{ Any of Any of
{
{
{
{
{
{ |