Searching:0 results found
Devices/Patch or Devices/Put
– OR –
To update an existing Axonize Device.
See the following for request and response details ‒
In the request, specify the ID of the Device whose definition to change and the name of the property(s) to change. These properties are described in Devices/Post.
For the Patch request, all unspecified fields remain unchanged.
For the Put request, all unspecified fields are assigned default values.
|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/Patch Request
The following is an example of changing a Device’s name to test.
curl -X PATCH \
-H ‘Authorization: Token’ \
-H ‘Content-Type: application/json’ \
-H ‘appId: 801A048A-9F23-429F-BF0D-B6D35B22771E’ \
|createDate, createUser, updateDate, updateUser||See Common Response Properties.|
Example JSON Devices/Patch/Put Response
Status 204 – No Content – The server has successfully fulfilled the request.