Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:d-sdk:3_permissions:1_change_permissions [2018/04/24 22:25]
support@geliossoft.ru created
en:d-sdk:3_permissions:1_change_permissions [2021/07/07 13:28]
Line 1: Line 1:
-====== 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 === 
-<code php>&​svc=change_permissions&​params={ 
-    "​entity":​ string, 
-    "​entity_id":​ integer, 
-    "​permission":​ integer, 
-    "​id_user":​ integer 
-}</​code>​ 
- 
-=== 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 == 
-<code php>{ 
-    "​result":​ true // Status of request for change of rights (true or false) 
-}</​code>​