This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:sidebar:remoteapi:apiref:user:update_item_access [23/01/2013 08:46] 127.0.0.1 external edit |
en:sidebar:remoteapi:apiref:user:update_item_access [13/02/2013 07:21] alek |
||
---|---|---|---|
Line 1: | Line 1: | ||
{{indexmenu_n>1}} | {{indexmenu_n>1}} | ||
- | ====== Назначение прав доступа ====== | + | ====== Manage user rights ====== |
- | Чтобы назначить пользователю права доступа к элементу, нужно использовать команду **user/update_item_access**: | + | |
+ | To give a user access rights to an item, use the command **user/update_item_access**: | ||
<code javascript> | <code javascript> | ||
svc=user/update_item_access¶ms={"userId":<long>, | svc=user/update_item_access¶ms={"userId":<long>, | ||
Line 8: | Line 9: | ||
</code> | </code> | ||
- | ===== Параметры ===== | + | ===== Parameters ===== |
- | ^ Название ^ Описание ^ | + | ^ Name ^ Description ^ |
- | | userId | ID пользователя | | + | | userId | user ID | |
- | | itemId | ID элемента | | + | | itemId | item ID | |
- | | accessMask | маска доступа (см. [[../core/check_items_billing#Общие| Флаги доступа: Общие]] и [[../core/check_items_billing#Объекты и группы объектов| Флаги доступа: Объекты и группы объектов]])| | + | | accessMask | access mask (see [[../core/check_items_billing#General| Access flags: General]] and [[../core/check_items_billing#Units and unit groups| Access flags: Units and unit groups]])| |
- | ===== Возвращаемый результат ===== | + | ===== Response ===== |
<code javascript> | <code javascript> | ||
- | {} /* пустой объект при удачном выполнении, при неудачном - код ошибки */ | + | {} /* empty object if execution successful, if not - error code */ |
</code> | </code> |
|