Referencia
Adjuntos de vehículo
Documentos y archivos colgados de una unidad.
Documentos y archivos colgados de una unidad.
| Método | Ruta | Qué hace |
|---|---|---|
GET | /vehicle-attachments | List registry documents for a vehicle |
POST | /vehicle-attachments | Upload a registry document for a vehicle (multipart/form-data) |
DELETE | /vehicle-attachments/{id} | Remove a vehicle attachment |
GET | /vehicle-attachments/{id}/content | Download the stored bytes of one attachment |
GET /vehicle-attachments
List registry documents for a vehicle
vehicle_id is required; there is no tenant-wide list.
| Parámetro | En | Tipo | Obligatorio | Restricciones |
|---|---|---|---|---|
vehicle_id | query | uuid | sí | |
kind | query | padron \ | cedula \ | contrato \ |
curl https://api.vitrinadev.com/api/v1/vehicle-attachments \
-H "Authorization: Bearer $VITRINA_KEY"Responde: 200 · 400 · 401 · 403 · 404 · 409 · 429
POST /vehicle-attachments
Upload a registry document for a vehicle (multipart/form-data)
Capped at the configured max size; the file part is required.
curl -X POST https://api.vitrinadev.com/api/v1/vehicle-attachments \
-H "Authorization: Bearer $VITRINA_KEY" \
-H "Content-Type: application/json" \
-d '{ … }'Responde: 201 · 400 · 401 · 403 · 404 · 409 · 429
DELETE /vehicle-attachments/{id}
Remove a vehicle attachment
Erases the storage object first, then the row.
| Parámetro | En | Tipo | Obligatorio | Restricciones |
|---|---|---|---|---|
id | path | uuid | sí |
curl -X DELETE https://api.vitrinadev.com/api/v1/vehicle-attachments/<id> \
-H "Authorization: Bearer $VITRINA_KEY"Responde: 204 · 400 · 401 · 403 · 404 · 409 · 429
GET /vehicle-attachments/{id}/content
Download the stored bytes of one attachment
Streams the raw file (not a JSON envelope) with Cache-Control: private, no-store and a locked-down CSP. Audited on every read.
| Parámetro | En | Tipo | Obligatorio | Restricciones |
|---|---|---|---|---|
id | path | uuid | sí |
curl https://api.vitrinadev.com/api/v1/vehicle-attachments/<id>/content \
-H "Authorization: Bearer $VITRINA_KEY"Responde: 200 · 400 · 401 · 403 · 404 · 409 · 429