PUT v2.0/user/{userId}/role
Добавляет роль пользователю.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
userId |
Идентификатор пользователя. |
integer |
Required |
Body Parameters
Идентификатор роли.
Korus.Eds.Api.SetUserRoleRequestName | Description | Type | Additional information |
---|---|---|---|
RoleId | integer |
None. |
|
ClientId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "roleId": 1, "clientId": 1 }
application/xml, text/xml
Sample:
<SetUserRoleRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Korus.Eds.Api"> <ClientId>1</ClientId> <RoleId>1</RoleId> </SetUserRoleRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Асинхронный результат.
None.