How can we help?

Searching:

0 results found

Devices/Delete

DELETE /odata/Devices/[deviceId]

Description

Deletes the details of a specific Device, as specified by the Device’s ID. This Device ID is returned in the response of the Devices/Post.

You cannot delete a Device that is a parent Device (see parentId) of other Devices or when that Device is specifically mentioned in a Rule(s). In the latter case, you must first delete or amend the Rule(s) before the Device can be deleted. An error is returned if you attempt to delete a parent Device or a Device that is bound to a Rule(s).

See the following for request and response details ‒

See Also

Request ‒ Devices/Delete

Property Type Description Mandatory
deviceId String This is the unique identifier automatically assigned by Axonize when a Device is created. This deviceId is returned in the response of the Devices/Post. Y

Example JSON Devices/Delete

curl -X DELETE \

https://api.stg.axonize.com/odata/devices/592139084d27e710e80f1234 \

-H ‘Authorization: Token’ \

-H ‘Content-Type: application/json’ \

-H ‘appId: 801A048A-9F23-429F-BF0D-B6D35B22771E’ \

Response ‒ Devices/Delete

Status 200 ‒ OK