---
title: "Partial update of a client."
method: PATCH
path: "/api/v1/clients/{client_id}"
tags: ["CRM — Clients"]
---

# Partial update of a client.

`PATCH /api/v1/clients/{client_id}`

## Request

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

**Permissions requises** : `crm:write`

## Request body

- ClientUpdate
  - `address` string, nullable
  - `address_line1` string, nullable
  - `address_line2` string, nullable
  - `category` 'prospect' | 'client'
  - `city` string, nullable
  - `company` string, nullable
  - `country` string, nullable
  - `email` string, email, nullable
  - `first_name` string, nullable
  - `icp_score` integer, nullable
  - `last_name` string, nullable
  - `marketing_opt_in` boolean
  - `name` string, nullable
  - `notes` string, nullable
  - `phone` string, nullable
  - `postal_code` string, nullable
  - `siren` string, nullable
  - `siret` string, nullable
  - `status` 'actif' | 'inactif' | 'archivé'
  - `vat_number` string, nullable
  - `website` string, nullable

## Response `200`

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

- object
  - `data` ClientResponse
    - `address` string, nullable
    - `address_line1` string, nullable
    - `address_line2` string, nullable
    - `category` string
    - `city` string, nullable
    - `company` string, nullable
    - `country` string, nullable
    - `created_at` string, date-time
    - `created_by` string, uuid, nullable
    - `display_name` string
    - `email` string, nullable
    - `first_name` string, nullable
    - `icp_score` integer, nullable
    - `id` string, uuid
    - `last_name` string, nullable
    - `marketing_opt_in` boolean
    - `marketing_opt_out_at` string, date-time, nullable
    - `name` string, nullable
    - `needs_enrichment` boolean
    - `notes` string, nullable
    - `phone` string, nullable
    - `postal_code` string, nullable
    - `siren` string, nullable
    - `siret` string, nullable
    - `site_id` string, uuid, nullable
    - `status` string
    - `updated_at` string, date-time
    - `vat_number` string, nullable
    - `website` 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)
