Reference
Vehicle attachments
Documents and files hanging off one unit.
Documents and files hanging off one unit.
| Method | Path | What it does |
|---|---|---|
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.
| Parameter | In | Type | Required | Constraints |
|---|---|---|---|---|
vehicle_id | query | uuid | yes | |
kind | query | padron \ | cedula \ | contrato \ |
curl https://api.vitrinadev.com/api/v1/vehicle-attachments \
-H "Authorization: Bearer $VITRINA_KEY"Answers: 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 '{ … }'Answers: 201 · 400 · 401 · 403 · 404 · 409 · 429
DELETE /vehicle-attachments/{id}
Remove a vehicle attachment
Erases the storage object first, then the row.
| Parameter | In | Type | Required | Constraints |
|---|---|---|---|---|
id | path | uuid | yes |
curl -X DELETE https://api.vitrinadev.com/api/v1/vehicle-attachments/<id> \
-H "Authorization: Bearer $VITRINA_KEY"Answers: 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.
| Parameter | In | Type | Required | Constraints |
|---|---|---|---|---|
id | path | uuid | yes |
curl https://api.vitrinadev.com/api/v1/vehicle-attachments/<id>/content \
-H "Authorization: Bearer $VITRINA_KEY"Answers: 200 · 400 · 401 · 403 · 404 · 409 · 429