Authentication
This endpoint requires authentication with a Bearer token.
Bearer token for authentication
Permissions
- Superusers: Can delete any patient record
- Regular users: Can only delete their own patient record
Path Parameters
The unique identifier of the patient to deleteExample: 1
Response
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
Patient successfully deleted
User does not have permission to delete this patient record
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