POST api/Permission/AssignPermByRol
Request Information
URI Parameters
None.
Body Parameters
PermsRolModelName | Description | Type | Additional information |
---|---|---|---|
permByRolList | Collection of PermsByRolsModel |
None. |
|
idRol | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "permByRolList": [ { "Id": 1, "PermId": 2, "RolId": 3, "Active": true }, { "Id": 1, "PermId": 2, "RolId": 3, "Active": true } ], "idRol": 1 }
application/xml, text/xml
Sample:
<PermsRolModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ROUTE.MODELS"> <idRol>1</idRol> <permByRolList> <PermsByRolsModel> <Active>true</Active> <Id>1</Id> <PermId>2</PermId> <RolId>3</RolId> </PermsByRolsModel> <PermsByRolsModel> <Active>true</Active> <Id>1</Id> <PermId>2</PermId> <RolId>3</RolId> </PermsByRolsModel> </permByRolList> </PermsRolModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |