Skip to main content
DELETE
/
leitos
/
{leito_id}
curl -X DELETE https://api.vidaplus.com/leitos/1 \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "message": "Leito deletado com sucesso."
}

Authentication

This endpoint requires authentication and superuser permissions. Only administrators can delete beds.

Path Parameters

leito_id
integer
required
The unique identifier of the bed to delete

Response

message
string
Confirmation message indicating successful deletion
curl -X DELETE https://api.vidaplus.com/leitos/1 \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "message": "Leito deletado com sucesso."
}

Important Notes

  • This action is permanent and cannot be undone
  • Only users with superuser permissions can delete beds
  • Ensure the bed is not actively in use before deletion

Build docs developers (and LLMs) love