POST Api/Users/ActivateDeactivate
Metodo para Activar o desactivar un usuario
Request Information
URI Parameters
None.
Body Parameters
IDRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| idUser |
ID del usuario |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"idUser": 1
}
application/xml, text/xml
Sample:
<IDRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <idUser>1</idUser> </IDRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Usuario
GenericResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| success |
La solicitud se realizo correctamente |
boolean |
None. |
| error |
Error arrojado por la API |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"error": "sample string 2"
}
application/xml, text/xml
Sample:
<GenericResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <success>true</success> <error>sample string 2</error> </GenericResponse>