Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/JanContrerasDev/gestor-contrasenas/llms.txt

Use this file to discover all available pages before exploring further.

POST /api/updatePassword/

Updates an existing password entry. You can update any combination of fields (password, sistema, usuario).

Path Parameters

id
integer
required
The unique identifier of the password entry to update

Request Body

password
string
The new password value
sistema
string
The new system or application name
usuario
string
The new username

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

password
object
The updated password object
id
integer
Unique identifier for the password entry
password
string
The updated password value
sistema
string
The updated system or application name
usuario
string
The updated username
status
integer
Status flag (1 = active, 0 = deleted)
message
string
Success message
status
integer
HTTP status code

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
}

Build docs developers (and LLMs) love