Skip to main content
DELETE
/
pacientes
/
{user_id}
curl -X DELETE https://api.vidaplus.com/pacientes/1 \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "message": "User deleted"
}

Authentication

This endpoint requires authentication with a Bearer token.
Authorization
string
required
Bearer token for authentication

Permissions

  • Superusers: Can delete any patient record
  • Regular users: Can only delete their own patient record

Path Parameters

user_id
integer
required
The unique identifier of the patient to deleteExample: 1

Response

message
string
Confirmation message indicating successful deletionExample: User deleted
curl -X DELETE https://api.vidaplus.com/pacientes/1 \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "message": "User deleted"
}

Error Codes

200
OK
Patient successfully deleted
403
Forbidden
User does not have permission to delete this patient record
404
Not Found
Patient with the specified ID does not exist

Notes

  • This operation permanently removes the patient record from the database
  • Consider the implications of deleting a patient with associated medical records
  • There is no undo operation for deletions

Build docs developers (and LLMs) love