---
title: "Update an IT asset."
method: PUT
path: "/api/v1/it/assets/{asset_id}"
tags: ["IT Service Management"]
---

# Update an IT asset.

`PUT /api/v1/it/assets/{asset_id}`

## Request

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

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

## Request body

- ITAssetUpdate
  - `asset_type` string, nullable
  - `assigned_employee_id` string, uuid, nullable
  - `assigned_user_id` string, uuid, nullable
  - `category` 'ordinateur' | 'ecran' | 'imprimante' | 'reseau' | 'telephone' | 'peripherique' | 'serveur' | 'tablette' | 'stockage'
  - `cpu` string, nullable
  - `disk_gb` integer, nullable
  - `disk_type` string, nullable
  - `ip_address` string, nullable
  - `location` string, nullable
  - `mac_address` string, nullable
  - `manufacturer` string, nullable
  - `model` string, nullable
  - `name` string
  - `notes` string, nullable
  - `os` string, nullable
  - `os_version` string, nullable
  - `purchase_date` string, date, nullable
  - `purchase_price` number, nullable
  - `ram_gb` integer, nullable
  - `serial_number` string, nullable
  - `site_id` string, uuid, nullable
  - `status` 'en_stock' | 'deploye' | 'en_panne' | 'en_reparation' | 'reforme' | 'prete'
  - `stock_product_id` string, uuid, nullable
  - `tags` string[]
  - `warranty_expiry` string, date, nullable

## Response `200`

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

- object
  - `data` ITAssetDetail
    - `asset_tag` string
    - `asset_type` string, nullable
    - `assigned_employee_id` string, uuid, nullable
    - `assigned_employee_name` unknown
    - `assigned_user_id` string, uuid, nullable
    - `assigned_user_name` unknown
    - `category` string
    - `cpu` string, nullable
    - `created_at` string, date-time
    - `deployed_at` string, date-time, nullable
    - `disk_gb` integer, nullable
    - `disk_type` string, nullable
    - `id` string, uuid
    - `ip_address` string, nullable
    - `location` string, nullable
    - `mac_address` string, nullable
    - `manufacturer` string, nullable
    - `model` string, nullable
    - `name` string
    - `notes` string, nullable
    - `os` string, nullable
    - `os_version` string, nullable
    - `purchase_date` string, date, nullable
    - `purchase_price` number, nullable
    - `ram_gb` integer, nullable
    - `retired_at` string, date-time, nullable
    - `serial_number` string, nullable
    - `site_id` string, uuid, nullable
    - `site_name` unknown
    - `status` string
    - `stock_product_id` string, uuid, nullable
    - `stock_product_name` unknown
    - `stock_product_sku` unknown
    - `stock_quantity` unknown
    - `tags` string[]
    - `updated_at` string, date-time
    - `warranty_expiry` string, date, 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)
