thingspace_oauth vz-m2m-session_token This is where the ThingSpace token, from Getting Started is used
In: header
The VZ-M2M session token from Getting Started
In: header
application/json
Partially update a smart alert
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/dm/v1/smartAlerts" \ -H "Content-Type: application/json" \ -d '{ "accountname": "0000123456-00001", "resourceidentifier": { "id": "0b37ab8b-eeee-ffff-gggg-e0149af43f43" }, "smartalert": { "accountclientid": "null", "billingaccountid": "0000123456-00001", "category": "telemetry", "condition": 2592000, "createdon": "2023-10-02T15:46:34.562Z", "description": "a short description", "deviceid": "The UUID of the device", "foreignid": "c1f178d3-eeee-ffff-gggg-0d6b7ae6022a", "id": "fecbe450-eeee-ffff-gggg-aa166fd5f8e3", "isacknowledged": true, "iscleared": true, "isdisabled": false, "lastupdated": "2023-10-02T15:46:34.562Z", "name": "User defined name of the record", "ruleid": "The UUID of a rule", "severity": "minor", "state": "success", "template": "The template ID", "version": "1.0", "versionid": "337bd2e8-eeee-ffff-gggg-5207992fd395" } }'{ "accountclientid": "null", "billingaccountid": "0000123456-00001", "category": "telemetry", "condition": 2592000, "createdon": "2023-10-02T15:46:34.562Z", "description": "a short description", "deviceid": "The UUID of the device", "foreignid": "c1f178d3-eeee-ffff-gggg-0d6b7ae6022a", "id": "string", "isacknowledged": true, "iscleared": true, "isdisabled": false, "lastupdated": "2023-10-02T15:46:34.562Z", "name": "name of the record", "ruleid": "The UUID of a rule", "severity": "minor", "state": "success", "template": "The template ID", "version": "1.0", "versionid": "337bd2e8-eeee-ffff-gggg-5207992fd395"}{ "error": "bad_request", "error_description": "The request is missing content.", "cause": "Request is missing required body content"}{ "error": "Error name or code", "error_description": "A longer error description.", "cause": "A cause for the error"}{ "error": "forbidden", "error_description": "The data does not belong to the provided billing account.", "cause": "Requested service is forbidden"}{ "error": "not_found", "error_description": "Requested information is not registered.", "cause": "Requested service not found"}{ "error": "Error name or code", "error_description": "A longer error description.", "cause": "A cause for the error"}{ "error": "Error name or code", "error_description": "A longer error description.", "cause": "A cause for the error"}{ "error": "Error name or code", "error_description": "A longer error description.", "cause": "A cause for the error"}{ "error": "internal_server_error", "error_description": "Failed to create record.", "cause": "Requested service failed due to internal error"}{ "error": "Error name or code", "error_description": "A longer error description.", "cause": "A cause for the error"}The numeric account name, which must include leading zeros