Skip to main content
GET
/
leitos
/
{leito_id}
curl -X GET https://api.vidaplus.com/leitos/1 \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "id": 1,
  "numero_leito": "101-A",
  "paciente_id": 5,
  "tipo": "Enfermaria",
  "status": "Ocupado"
}

Authentication

This endpoint requires authentication and superuser permissions. Only administrators can view individual bed details.

Path Parameters

leito_id
integer
required
The unique identifier of the bed to retrieve

Response

id
integer
Unique identifier for the bed
numero_leito
string
The bed number identifier
paciente_id
integer | null
ID of the patient assigned to this bed, or null if unassigned
tipo
string
Type of bed. Possible values:
  • UTI - Intensive Care Unit
  • Enfermaria - Ward
  • Emergência - Emergency
  • Isolamento - Isolation
  • Semi-Intensivo - Semi-Intensive
  • Pediátrico - Pediatric
  • Neonatal - Neonatal
  • Psiquiátrico - Psychiatric
status
string
Current status of the bed. Possible values:
  • Ocupado - Occupied
  • Livre - Free
  • Reservado - Reserved
  • Em Manutenção - Under Maintenance
curl -X GET https://api.vidaplus.com/leitos/1 \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "id": 1,
  "numero_leito": "101-A",
  "paciente_id": 5,
  "tipo": "Enfermaria",
  "status": "Ocupado"
}

Access Control

Only superuser accounts can access this endpoint. Regular users will receive a 403 Forbidden error.

Build docs developers (and LLMs) love