---
title: "Update an intervention."
method: PUT
path: "/api/v1/maintenance/interventions/{intervention_id}"
tags: ["Maintenance & IoT"]
---

# Update an intervention.

`PUT /api/v1/maintenance/interventions/{intervention_id}`

## Request

- Base URL: `https://erp.eyeot.fr/api/v1`
- URL: `https://erp.eyeot.fr/api/v1/api/v1/maintenance/interventions/{intervention_id}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

**Permissions requises** : `maintenance:write`

## Request body

- InterventionUpdate
  - `description` string, nullable
  - `equipment_id` string, uuid
  - `parts` InterventionPartCreate[]
    - `product_id` string, uuid, required
    - `quantity_needed` integer
  - `planned_date` unknown
  - `priority` 'LOW' | 'MEDIUM' | 'HIGH' | 'URGENT'
  - `recurrence_type` 'none' | 'daily' | 'weekly' | 'monthly' | 'quarterly' | 'yearly' | 'null', nullable
  - `technician_id` string, uuid, nullable
  - `type` 'CURATIVE' | 'PREVENTIVE'

## Response `200`

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

- object
  - `data` InterventionDetail
    - `completed_at` string, date-time, nullable
    - `created_at` string, date-time
    - `created_by` string, uuid, nullable
    - `description` string, nullable
    - `downtime_minutes` integer, nullable
    - `equipment_id` string, uuid
    - `equipment_name` unknown
    - `id` string, uuid
    - `parts` InterventionPart[]
      - `id` string, uuid
      - `product_id` string, uuid
      - `product_name` unknown
      - `quantity_needed` integer
      - `quantity_used` integer, nullable
    - `planned_date` unknown
    - `priority` string
    - `recurrence_type` string, nullable
    - `reference` string, nullable
    - `site_name` unknown
    - `sla_resolution_due_at` string, date-time, nullable
    - `sla_responded_at` string, date-time, nullable
    - `sla_response_due_at` string, date-time, nullable
    - `started_at` string, date-time, nullable
    - `status` string
    - `technician_id` string, uuid, nullable
    - `technician_name` unknown
    - `type` string
    - `updated_at` string, date-time
  - `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)
