Request ‒ Roles/Post/[roleId]/addTask
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.
tasks
String
Specifies the tasks IDs to add to the Role.
Example JSON Roles/Post/[roleId]/addTask Request
curl -X POST \
https://api.dev.axonize.com/odata/Roles/9939D515-852A-4CAB-A676-6C214CB09A47/AddTask \
-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 ‘{“tasks”:[“15B8BC56-81ED-402E-95CA-3842BBA386BD”]}’