Response ‒ Roles/Post
All the same properties in the request are returned in the response. The response that is returned also contains the following properties –
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.
appId
String
The appId of the Master Application that created the Role.
createDate
See Common Response Properties.
Example JSON Dashboards/Post Response
Status 201 – Created
{
“@odata.context”: “https://dev-axonizeapi-axonize.dev-ase-axonize.p.azurewebsites.net/odata/$metadata#Roles/$entity”,
“name”: “NewRole”,
“displayName”: “Role”,
“isShared”: 1,
“taskIds”: [
“06ecc4ec-115d-4e28-ba87-40b6bcb2bfbb”,
“15b8bc56-81ed-402e-95ca-3842bba386bd”
],
“id”: “9939D515-852A-4CAB-A676-6C214CB09A47”,
“appId”: “289a7624-c590-4b4c-b15a-7801d8902ce9”,
“creationDate”: “2018-10-25T12:48:03.5673557Z”
}