---
title: "Update a license."
method: PUT
path: "/api/v1/it/licenses/{license_id}"
tags: ["IT Service Management"]
---

# Update a license.

`PUT /api/v1/it/licenses/{license_id}`

## Request

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

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

## Request body

- LicenseUpdate
  - `contract_ref` string, nullable
  - `cost` number, nullable
  - `expiry_date` string, date, nullable
  - `license_key` string, nullable
  - `license_type` 'oem' | 'volume' | 'par_poste' | 'abonnement' | 'libre' | 'gratuit'
  - `notes` string, nullable
  - `purchase_date` string, date, nullable
  - `total_seats` integer
  - `used_seats` integer
  - `vendor` string, nullable

## Response `200`

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

- object
  - `data` License
    - `contract_ref` string, nullable
    - `cost` number, nullable
    - `created_at` string, date-time
    - `expiry_date` string, date, nullable
    - `id` string, uuid
    - `license_key` string, nullable
    - `license_type` string
    - `notes` string, nullable
    - `purchase_date` string, date, nullable
    - `software_id` string, uuid
    - `software_name` unknown
    - `total_seats` integer
    - `used_seats` integer
    - `vendor` 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)
