patch https://{subdomain}.kommo.com/api/v4/roles
This method allows editing user roles.
Limitations
Method is available for administrator users only.
status_rights
example
status_rights
example"status_rights": [
{
"entity_type": "leads",
"pipeline_id": XXXXXX,
"status_id": XXXXXXX,
"rights": {
"edit": "A",
"view": "A",
"delete": "A",
"export": "A"
}
}
]
Request parameters
If the rights[status_rights]
parameter has a value “null”
or []
then current lead stages rights for this role will be deleted.
In that case, Incoming Leads stage rights will be set as “restricted”.