POST Api/Users/ChangePassword
Metodo para cambiar el password
Request Information
URI Parameters
None.
Body Parameters
ChangePasswordRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| idUser |
ID del usuario a modificar la contraseña |
integer |
None. |
| password |
Nueva contraseña |
string |
None. |
| Manual | boolean |
None. |
|
| userChange | boolean |
None. |
|
| oldPassword | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"idUser": 1,
"password": "sample string 2",
"Manual": true,
"userChange": true,
"oldPassword": "sample string 5"
}
application/xml, text/xml
Sample:
<ChangePasswordRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <idUser>1</idUser> <password>sample string 2</password> <Manual>true</Manual> <userChange>true</userChange> <oldPassword>sample string 5</oldPassword> </ChangePasswordRequest>
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>