POST api/Usuarios/updateRole
Request Information
URI Parameters
None.
Body Parameters
roleObjName | Description | Type | Additional information |
---|---|---|---|
idRol | integer |
None. |
|
Nombre | string |
None. |
|
Descripcion | string |
None. |
|
permisoLists | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "idRol": 1, "Nombre": "sample string 2", "Descripcion": "sample string 3", "permisoLists": [ 1, 2 ] }
application/xml, text/xml
Sample:
<roleObj xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EXPU_Backend.Models"> <Descripcion>sample string 3</Descripcion> <Nombre>sample string 2</Nombre> <idRol>1</idRol> <permisoLists xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </permisoLists> </roleObj>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
defaultResponseName | Description | Type | Additional information |
---|---|---|---|
status | integer |
None. |
|
message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "status": 1, "message": "sample string 2" }
application/xml, text/xml
Sample:
<defaultResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EXPU_Backend.Models"> <message>sample string 2</message> <status>1</status> </defaultResponse>