---
title: "Update an IT contract."
method: PUT
path: "/api/v1/it/contracts/{contract_id}"
tags: ["IT Service Management"]
---

# Update an IT contract.

`PUT /api/v1/it/contracts/{contract_id}`

## Request

- Base URL: `https://erp.eyeot.fr/api/v1`
- URL: `https://erp.eyeot.fr/api/v1/api/v1/it/contracts/{contract_id}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

**Permissions requises** : `it:write`

## Request body

- ITContractUpdate
  - `auto_renew` boolean
  - `billing_period` 'mensuel' | 'trimestriel' | 'annuel' | 'ponctuel'
  - `contract_type` 'maintenance' | 'garantie' | 'support' | 'hebergement' | 'saas' | 'location'
  - `cost` number, nullable
  - `end_date` string, date, nullable
  - `name` string
  - `notes` string, nullable
  - `notice_days` integer, nullable
  - `reference` string
  - `start_date` string, date
  - `vendor` string
  - `vendor_contact` string, nullable

## Response `200`

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

- object
  - `data` ITContractDetail
    - `asset_count` unknown
    - `asset_links` unknown
    - `auto_renew` boolean
    - `billing_period` string
    - `contract_type` string
    - `cost` number, nullable
    - `created_at` string, date-time
    - `end_date` string, date, nullable
    - `id` string, uuid
    - `name` string
    - `notes` string, nullable
    - `notice_days` integer, nullable
    - `reference` string
    - `start_date` string, date
    - `updated_at` string, date-time
    - `vendor` string
    - `vendor_contact` string, nullable
  - `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)
