Request ‒ Roles/Post
Property
Type
Description
name
String
The name of the Role.
taskIds
String
The list of task IDs associated with the Role.
displayName
String
The name of the Role to be displayed in the IoT Platform Portal.
isShared
Boolean
Indicates whether or not the Role is shared with all the Applications that relate to the role application. Values are 0/1 (True/False).
description
String
A description of the Role.
Example JSON Roles/Post Request
curl -X POST \
https://api.dev.axonize.com/odata/Roles \
-H ‘Accept: application/json, text/plain, */*’ \
-H ‘Accept-Language: en-US,en;q=0.9’ \
-H ‘AppId: 289a76sd-c550-324c-b15a-7801d8902ce9’ \
-H ‘Content-Type: application/json’ \
-H ‘cache-control: no-cache’ \
-d ‘{
“name”:”NewRole”,
“taskIds”: [“06ecc4ec-115d-4e28-ba87-40b6bcb2bfbb”],
“displayName”: “Role”,
“isShared”: 1
}’