Request ‒ Roles/Patch
In the request, specify the ID of the Role whose definition to change and the name of the property(s) to change. These properties are described in Roles/Post.
Property
Type
Description
id
String
This is the unique identifier automatically assigned by IoT Platform when a Role is created. This id is returned in the response of the Roles/Post.
Example JSON Roles/Patch Request
curl -X PATCH \
https://api.dev.axonize.com/odata/Roles/9939D515-852A-4CAB-A676-6C214CB09A47 \
-H ‘Accept: application/json, text/plain, */*’ \
-H ‘Accept-Language: en-US,en;q=0.9’ \
-H ‘Content-Type: application/json’ \
-H ‘appId: 1aaf017c-b987-4f53-94d6-ad9afb8e4767’ \
-H ‘cache-control: no-cache’ \
-d ‘{
“displayName” : “New Display”
}’