Sensor Insights Rules

Overwrite a rule

POST
/dm/v1/rules

Authorization

thingspace_oauth VZ-M2M-Token
AuthorizationBearer <token>

This is the ThingSpace token, from Credentials and Tokens is used

In: header

VZ-M2M-Token<token>

M2M Session Token (How to generate an M2M session token?)

In: header

Request Body

application/json

Overwrite a rule

Overwrite a rule

accountname?string

The numeric account name, which must include leading zeros

resourceidentifier?
rule?

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/dm/v1/rules" \  -H "Content-Type: application/json" \  -d '{    "accountname": "0000123456-00001",    "resourceidentifier": {      "id": "7f5f610a-eeee-ffff-gggg-4d20cf3dcfbc"    },    "rule": {      "accountclientid": "null",      "billingaccountid": "The billing account ID",      "createdon": "2023-10-02T15:46:34.562Z",      "description": "a short description",      "deviceid": "The UUID of the device",      "disabled": true,      "foreignid": "c1f178d3-eeee-ffff-gggg-0d6b7ae6022a",      "id": "bc5b5b5a-eeee-ffff-gggg-cb2cb2533d47",      "lastupdated": "2023-10-02T15:46:34.562Z",      "name": "User defined name of the record",      "rulechain": {},      "rulesyntax": "The rule syntax",      "version": "1.0",      "versionid": "337bd2e8-eeee-ffff-gggg-5207992fd395"    }  }'
{  "accountclientid": "null",  "billingaccountid": "0000123456-00001",  "createdon": "2023-10-02T15:46:34.562Z",  "description": "a short description",  "deviceid": "The UUID of the device",  "disabled": false,  "foreignid": "c1f178d3-eeee-ffff-gggg-0d6b7ae6022a",  "id": "string",  "lastupdated": "2023-10-02T15:46:34.562Z",  "name": "name of the record",  "rulechain": {},  "rulesyntax": "The rule syntax",  "version": "1.0",  "versionid": "337bd2e8-eeee-ffff-gggg-5207992fd395"}