This is an old revision of the document!


Assign Access Rights

The request is intended to access rights to units, group of units, report templates, geosites, group of geosites, geopoints, group of units, services.

Request Example

&svc=change_permissions&params={
    "entity": string,
    "entity_id": integer,
    "permission": integer,
    "id_user": integer
}

Parameters

Parameter Description
entity The name of the entity for which the access rights are changed(“units”, “units_groups”, “template_reports”, “geozones”, “geozones_groups”, “geopoints”, “geopoints_groups”, “services”)
entity_id Entity ID for which the access rights are changed(“units”, “units_groups”, “template_reports”, “geozones”, “geozones_groups”, “geopoints”, “geopoints_groups”, “services”)
permission Permission Value
id_user User ID for which the access rights are changed

Additional Information

Returns the result of the request to change the rights.

Server Response

Request Result
{
    "result": true // Status of request for change of rights (true or false)
}