---
title: "livraison.update_vehicle"
method: PATCH
path: "/api/v1/livraison/vehicles/{vehicle_id}"
tags: ["Livraison & Routing (V2)"]
---

# livraison.update_vehicle

`PATCH /api/v1/livraison/vehicles/{vehicle_id}`

## Request

- Base URL: `https://erp.eyeot.fr/api/v1`
- URL: `https://erp.eyeot.fr/api/v1/api/v1/livraison/vehicles/{vehicle_id}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

**Permissions requises** : `livraison:vehicle_manage`

## Response `200`

Succès — payload `{data, meta}` (cf. API-GUIDE §3.1)

- object
  - `data` VehicleResponse
    - `capacity_kg` number, nullable
    - `capacity_m3` number, nullable
    - `current_km` integer
    - `depot_id` string, uuid, nullable
    - `equipment_id` string, uuid, nullable
    - `id` string, uuid
    - `is_active` boolean
    - `is_available` boolean
    - `km_at_last_maintenance` integer, nullable
    - `km_threshold_alert` integer, nullable
    - `last_ct_date` string, date, nullable
    - `maintenance_status` unknown
    - `name` string
    - `next_ct_date` string, date, nullable
    - `next_maintenance_date` string, date, nullable
    - `notes_maintenance` string, nullable
    - `plate` string
    - `type` string
  - `meta` PaginationMeta: Métadonnées de pagination cursor (cf. API-GUIDE §6).
    - `limit` integer
    - `next_cursor` string, nullable
    - `prev_cursor` string, nullable
    - `total_count` integer

## Other responses

- `400`: Validation Marshmallow échouée. `errors` détaille chaque champ invalide.
- `401`: JWT manquant, expiré ou révoqué.
- `402`: L'organisation n'a pas d'abonnement actif (paywall). Rediriger vers /activate.
- `403`: Permissions `module:action` insuffisantes pour cette route.
- `404`: Ressource introuvable (ou cross-tenant — équivalent à hidden).
- `409`: État incohérent (email dupliqué, ressource déjà dans cet état, etc.).
- `422`: Validation Marshmallow échouée. `errors` détaille chaque champ invalide.
- `429`: Trop de requêtes. Honorer le header `Retry-After` (secondes).

---

[API](https://skmtc.dev/eyeot/apis/eyeot-erp-api.md) · [All operations](https://skmtc.dev/eyeot/apis/eyeot-erp-api/llms.txt) · [OpenAPI document](https://skmtc.dev/eyeot/apis/eyeot-erp-api/revisions/42ab95222a89?raw)
