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
Set device configuration
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/dm/v1/devices/actions/set" \ -H "Content-Type: application/json" \ -d '{ "accountname": "0000123456-00001", "configuration": { "deviceConfig": { "ble": { "dataMode": 1, "manufacturerId": 13200, "maxNumScan": 100, "minSigStr": -115, "monitorPeriod": 300, "moreManufId": [ {} ], "opMode": 1, "reportOffset": 0, "reportPeriod": 300, "reportType": 2, "scanDuration": 20 } } }, "resourceidentifier": { "deveui": "The unique EUI64 address of the device", "deviceid": "The UUID of the device", "esn": 223372036854775800, "iccid": "The 20-digit Integrated Circuit Card ID (SIM card ID)", "imei": 223372036854775, "imsi": 223372036854775800, "mac": "The Media Access Control address of the device, listed on the device in the format XX-XX-XX-XX-XX-XX or XX:XX:XX:XX:XX:XX", "manufacturer": "REOLINK", "meid": "The 56-bit Mobile Equipment ID", "msisdn": "The Mobile Station International Subscriber Directory Number. In the USA, this is 1+ a 10-digit phone number", "node_uuid": "The UUID of the node the device is associated with", "qrcode": "The Quick Response (QR) code", "serial": "The device\'s serial number" } }'{ "actionresult": [ { "createdon": "2023-10-02T15:46:34.562Z", "description": "Failed to forward the event to the provider.", "deviceid": "The UUID of the device", "errmsg": "provider_service_error", "fields": { "deviceConfig": { "ble": { "dataMode": 1, "manufacturerId": 13200, "maxNumScan": 100, "minSigStr": -115, "monitorPeriod": 300, "moreManufId": [ {} ], "opMode": 1, "reportOffset": 0, "reportPeriod": 300, "reportType": 2, "scanDuration": 20 } } }, "foreignid": "c1f178d3-eeee-ffff-gggg-0d6b7ae6022a", "id": "string", "lastupdated": "2023-10-02T15:46:34.562Z", "state": "success", "transactionid": "afbcc00d-eeee-ffff-gggg-38b4333fcf06", "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": "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"}The numeric account name, which must include leading zeros
Device identifiers, one or more are required