Skip to main content
DELETE
/
prescricoes
/
{prescricao_id}
curl -X DELETE https://api.vidaplus.com/prescricoes/1 \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "message": "Prescrição excluída com sucesso."
}
Deletes an existing prescription from the system. Only the healthcare professional who created the prescription (or a superuser) can delete it.

Authentication

This endpoint requires authentication via JWT Bearer token.
Authorization
string
required
Bearer token for authentication

Path Parameters

prescricao_id
integer
required
The unique identifier of the prescription to delete

Response

message
string
Confirmation message indicating successful deletion
curl -X DELETE https://api.vidaplus.com/prescricoes/1 \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "message": "Prescrição excluída com sucesso."
}

Error Codes

Status CodeDescription
200Prescription deleted successfully
401Unauthorized - Invalid or missing token
403User does not have permission to delete this prescription
404Prescription not found

Access Control

  • Only the healthcare professional who created the prescription can delete it
  • Superusers can delete any prescription
  • Deletion is permanent and cannot be undone

Important Notes

  • This action is irreversible
  • Deleted prescriptions cannot be recovered
  • Consider the impact on related medical records before deleting

Build docs developers (and LLMs) love