v1
latestOpenAPI 3.1.02026-07-14159142161.9 KBroles (usersService)
Update role by id
Update role data.
patch/company/v1/roles/{roleId}
Request body
Example request
{
"title": "Admin",
"permissions": [
"crm.lead.edit.mine",
"crm.lead.delete.allowed",
"crm.lead.edit.department"
]
}Response
OK
Example response
{
"title": "Admin",
"code": "ADMIN",
"userlist": [
{
"firstName": "Stas",
"lastName": "Raranetskyi",
"avatar": "path to avatar",
"dateUpdate": 1654180120
}
],
"departmentlist": [
{
"name": "Employee",
"dateUpdate": 1654180120
}
]
}