POST /api/updatePassword/
Updates an existing password entry. You can update any combination of fields (password, sistema, usuario).
Path Parameters
The unique identifier of the password entry to update
Request Body
The new system or application name
Request
curl -X POST http://your-domain.com/api/updatePassword/1 \
-H "Content-Type: application/json" \
-d '{
"password": "newSecurePass456",
"sistema": "Production Database",
"usuario": "admin"
}'
Response
The updated password objectUnique identifier for the password entry
The updated password value
The updated system or application name
Status flag (1 = active, 0 = deleted)
Response Codes
- 200 - Success - Password updated successfully
- 404 - Password not found
Example Response (200 OK)
{
"password": {
"id": 1,
"password": "newSecurePass456",
"sistema": "Production Database",
"usuario": "admin",
"status": 1
},
"message": "contraseña actualizada",
"status": 200
}
Example Response (404 Not Found)
{
"message": "contraseña no encontrada",
"status": 404
}