Skip to main content
DELETE
/
exames
/
{exame_id}
curl -X DELETE https://api.vidaplus.com/exames/1 \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
  "message": "Exame deletado com sucesso."
}
Deletes an exam record from the system. Healthcare professionals can delete any exam, while patients can only delete their own exams.

Authentication

This endpoint requires authentication with a valid JWT token.

Path Parameters

exame_id
integer
required
The unique identifier of the exam to delete.

Response

message
string
A confirmation message indicating the exam was successfully deleted.
curl -X DELETE https://api.vidaplus.com/exames/1 \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
  "message": "Exame deletado com sucesso."
}

Error Responses

Access Control

  • Healthcare Professionals (superusers): Can delete any exam in the system
  • Patients: Can only delete their own exams (where paciente_id matches their user ID)

Warning

This action is permanent and cannot be undone. Make sure you want to delete the exam before making this request.

Build docs developers (and LLMs) love