PUT v2.0/user/{userId}/roles
Добавляет/назначает роли пользователю.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| userId |
Идентификатор пользователя. |
integer |
Required |
Body Parameters
Запрос добавления/назначения ролей пользователю.
Korus.Eds.Api.SetUserRolesRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| RoleIds | Collection of integer |
None. |
|
| ClientId | integer |
None. |
|
| MergeRoles | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"roleIds": [
1,
2
],
"clientId": 1,
"mergeRoles": true
}
application/xml, text/xml
Sample:
<SetUserRolesRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Korus.Eds.Api">
<_x003C_ClientId_x003E_k__BackingField>1</_x003C_ClientId_x003E_k__BackingField>
<_x003C_MergeRoles_x003E_k__BackingField>true</_x003C_MergeRoles_x003E_k__BackingField>
<_x003C_RoleIds_x003E_k__BackingField xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:long>1</d2p1:long>
<d2p1:long>2</d2p1:long>
</_x003C_RoleIds_x003E_k__BackingField>
</SetUserRolesRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Асинхронный результат.
None.