---
title: "Update Client"
method: PUT
path: "/clients/{client_id}.json"
tags: ["Clients"]
---

# Update Client

`PUT /clients/{client_id}.json`

Updates a client.

## Path parameters

- `client_id` string, required

## Query parameters

- `api_key` string, required

## Request body

- ClientRequest
  - `client` object, required
    - `name` string, required
    - `code` string, required — Maximum length is the database default, not an enforced business rule.
    - `email` string
    - `language` 'en' | 'pt' | 'es'
    - `address` string — No enforced character limit (text column).
    - `city` string — Maximum length is the database default, not an enforced business rule.
    - `postal_code` string — Maximum length is the database default, not an enforced business rule.
    - `country` string — Maximum length is the database default, not an enforced business rule.
    - `fiscal_id` string — Maximum length is the database default, not an enforced business rule.
    - `website` string
    - `phone` string
    - `fax` string
    - `preferred_contact` object — The preferred contact details.
      - `name` string — Contact-level name has no length validation, unlike the client-level `name` (max 100); the limit shown is the database default.
      - `email` string — Contact-level email allows one character more than the client-level `email` (max 254).
      - `phone` string — Contact-level phone has no length validation, unlike the client-level `phone` (max 20); the limit shown is the database default.
    - `observations` string — No enforced character limit (text column).
    - `send_options` '1' | '2' | '3'

## Response `200`

SUCCESS

## Other responses

- `401` — ACCESS DENIED
- `404` — NOT FOUND
- `422` — UNPROCESSABLE ENTITY

---

[API](https://skmtc.dev/invoicexpress/apis/invoicexpress-api.md) · [All operations](https://skmtc.dev/invoicexpress/apis/invoicexpress-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/invoicexpress/invoicexpress-api/revisions/5b82d4eb0d9f/schema)
