Update role
PUT/UpdateRole
Updates the details and permissions of an existing role in the graph database. The update is performed based on the provided data in the request body, specifying changes to the role.
Request
- application/json
Body
required
Add updated information for the particular role.
data
object
required
Updated information for the role.
Possible values: [new-user-role-update
]
Please provide the updated name for the role if you want to update the role name
newRoles
object
If you want to create a new role for the user then please provide the role permission in the form of App Name and its corresponding create, read, update, delete permission.
Maps
object
Maps app permissions
Possible values: [true
, false
]
Provide true to enable the read permission for the Maps app, else provide false.
Possible values: [true
, false
]
Provide true to enable the create permission for the Maps app, else provide false.
Possible values: [true
, false
]
Provide true to enable the update permission for the Maps app, else provide false.
Possible values: [true
, false
]
Provide true to enable the delete permission for the Maps app, else provide false.
Warranty
object
Warranty app permissions
Possible values: [true
, false
]
Provide true to enable the read permission for the Warranty app, else provide false.
Possible values: [true
, false
]
Provide true to enable the create permission for the Warranty app, else provide false.
Possible values: [true
, false
]
Provide true to enable the update permission for the Warranty app, else provide false.
Provide true to enable the update permission for the Warranty app, else provide false.
Assets
object
Assets app permissions
Possible values: [true
, false
]
Provide true to enable the read permission for the Assets app, else provide false.
Possible values: [true
, false
]
Provide true to enable the create permission for the Assets app, else provide false.
Possible values: [true
, false
]
Provide true to enable the update permission for the Assets app, else provide false.
Possible values: [true
, false
]
Provide true to enable the delete permission for the Assets app, else provide false.
Video
object
Video app permissions
Possible values: [true
, false
]
Provide true to enable the read permission for the Video app, else provide false.
Possible values: [true
, false
]
Provide true to enable the create permission for the Video app, else provide false.
Possible values: [true
, false
]
Provide true to enable the update permission for the Video app, else provide false.
Possible values: [true
, false
]
Provide true to enable the delete permission for the Video app, else provide false.
Manuals
object
Manuals app permissions
Possible values: [true
, false
]
Provide true to enable the read permission for the Manuals app, else provide false.
Possible values: [true
, false
]
Provide true to enable the create permission for the Manuals app, else provide false.
Possible values: [true
, false
]
Provide true to enable the update permission for the Manuals app, else provide false.
Possible values: [true
, false
]
Provide true to enable the delete permission for the Manuals app, else provide false.
Alerts
object
Alerts app permissions
Possible values: [true
, false
]
Provide true to enable the read permission for the Alerts app, else provide false.
Possible values: [true
, false
]
Provide true to enable the create permission for the Alerts app, else provide false.
Possible values: [true
, false
]
Provide true to enable the update permission for the Alerts app, else provide false.
Possible values: [true
, false
]
Provide true to enable the delete permission for the Alerts app, else provide false.
Devices
object
Devices app permissions
Possible values: [true
, false
]
Provide true to enable the read permission for the Devices app, else provide false.
Possible values: [true
, false
]
Provide true to enable the create permission for the Devices app, else provide false.
Possible values: [true
, false
]
Provide true to enable the update permission for the Devices app, else provide false.
Possible values: [true
, false
]
Provide true to enable the delete permission for the Devices app, else provide false.
Possible values: [role updated for the new user
]
Please provide the updated description for the role if you want to update the role name
Possible values: [UR-e1c9873a-4b5c-4811-91b6-efb37b0ddd8f
]
ID of the role to be updated.
Responses
- 200
- 400
- 401
- 502
- 504
200 response
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [UR-e1c9873a-4b5c-4811-91b6-efb37b0ddd8f
]
ID of the updated role.
Possible values: [new-user-role-update
]
Name of the updated role.
Possible values: [role updated for the new user
]
Description of the updated role.
{
"roleId": "UR-e1c9873a-4b5c-4811-91b6-efb37b0ddd8f",
"roleName": "new-user-role-update",
"roleDescription": "role updated for the new user"
}
400 response
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "string"
}
401 response
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "string"
}
502 response
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "string"
}
504 response
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "string"
}