---
title: "Update a client"
method: PUT
path: "/clients/{id}"
tags: ["Clients"]
---

# Update a client

`PUT /clients/{id}`

## Request

- Base URL: `https://api.lumabill.ch/v1`
- URL: `https://api.lumabill.ch/v1/clients/{id}`
- Auth: HTTP bearer

## Request body

- ClientWrite
  - `name` string, required
  - `email` string, email, nullable
  - `phone` string, nullable
  - `address` string, nullable
  - `address_line2` string, nullable
  - `city` string, nullable
  - `zip` string, nullable
  - `country` string, nullable
  - `company_name` string, nullable
  - `vat_number` string, nullable

## Response `200`

Updated client

- Client
  - `id` string, uuid, required
  - `name` string, required
  - `email` string, email, nullable
  - `phone` string, nullable
  - `address` string, nullable
  - `address_line2` string, nullable
  - `city` string, nullable
  - `zip` string, nullable
  - `country` string, nullable: ISO 3166-1 alpha-2 country code
  - `company_name` string, nullable
  - `vat_number` string, nullable
  - `created_at` string, date-time, required

## Other responses

- `400`: Validation error
- `401`: Invalid or missing API key
- `403`: Subscription required or read-only key on a write endpoint
- `404`: Resource not found
- `429`: Rate limit exceeded
- `500`: Internal server error

---

[API](https://skmtc.dev/lumabill/apis/lumabill-api.md) · [All operations](https://skmtc.dev/lumabill/apis/lumabill-api/llms.txt) · [OpenAPI document](https://skmtc.dev/lumabill/apis/lumabill-api/revisions/e48e7099b545?raw)
