roles (usersService)

Create role.

Create role.

post/company/v1/roles

Request body

titlestring required
codestring
permissionsstring[]

Example request

{
  "title": "Admin",
  "code": "ADMIN",
  "permissions": [
    "crm.lead.edit.mine",
    "crm.lead.delete.allowed",
    "crm.lead.edit.department"
  ]
}

Response

OK

idstring
titlestring
codestring

Example response

{
  "title": "Admin",
  "code": "ADMIN"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.