---
title: "Update client"
method: PUT
path: "/api/clients/{client_id}"
tags: ["Clients - Protected"]
---

# Update client

`PUT /api/clients/{client_id}`

Update an existing client.
Verifies the client belongs to the authenticated user's company.
Validates NIF uniqueness if NIF is being changed.

## Path parameters

- `client_id` integer, required — Client ID

## Headers

- `x-api-token` string, nullable

## Request body

- ClientUpdate — Client update request (all fields optional).
  - `nome` string, nullable
  - `email` string, nullable
  - `contacto` string, nullable
  - `nif` integer, nullable
  - `cc` string, nullable
  - `validade_cc` string, date, nullable
  - `entidade_emissora_cc` string, nullable
  - `particular` boolean, nullable
  - `recorrente` boolean, nullable
  - `carta_conducao` string, nullable
  - `data_carta_conducao` string, date, nullable
  - `iban` string, nullable
  - `iban_alimentar` string, nullable
  - `pais` string, nullable
  - `morada` string, nullable
  - `codigo_postal` string, nullable
  - `localidade` string, nullable
  - `cidade` string, nullable
  - `id_pontodevenda` integer, nullable
  - `id_estado_civil` integer, nullable
  - `id_tipo_casa` integer, nullable
  - `id_contrato_trabalho` integer, nullable
  - `tipo_id` integer, nullable
  - `agregado_familiar` integer, nullable
  - `creditos_ativos` integer, nullable
  - `mensalidade_casa` number, nullable
  - `antiguidade_empresa` integer, nullable
  - `mensalidade_creditos` number, nullable
  - `vencimento_liquido` number, nullable
  - `foreign_nif` string, nullable

## Response `200`

Successful Response

- ClientResponse — Client response with ID and addresses.
  - `id` integer, required
  - `nome` string, required
  - `email` string, nullable
  - `contacto` string, nullable
  - `nif` integer, nullable
  - `cc` string, nullable
  - `validade_cc` string, date, nullable
  - `entidade_emissora_cc` string, nullable
  - `particular` boolean
  - `recorrente` boolean
  - `carta_conducao` string, nullable
  - `data_carta_conducao` string, date, nullable
  - `iban` string, nullable
  - `iban_alimentar` string, nullable
  - `pais` string, nullable
  - `morada` string, nullable
  - `codigo_postal` string, nullable
  - `localidade` string, nullable
  - `cidade` string, nullable
  - `idcompany` integer, nullable
  - `id_pontodevenda` integer, nullable
  - `id_estado_civil` integer, nullable
  - `id_tipo_casa` integer, nullable
  - `id_contrato_trabalho` integer, nullable
  - `tipo_id` integer, nullable
  - `agregado_familiar` integer, nullable
  - `creditos_ativos` integer, nullable
  - `mensalidade_casa` number, nullable
  - `antiguidade_empresa` integer, nullable
  - `mensalidade_creditos` number, nullable
  - `vencimento_liquido` number, nullable
  - `foreign_nif` string, nullable
  - `addresses` AddressResponse[]
    - `id` integer, required
    - `morada` string, nullable
    - `codigo_postal` string, nullable
    - `localidade` string, nullable
    - `cidade` string, nullable
    - `pais` string, nullable
    - `principal` boolean
  - `ID` integer, nullable
  - `Nome` string, nullable
  - `NIF` integer, nullable
  - `Contacto` string, nullable
  - `CC` string, nullable
  - `ValidadeCC` string, nullable
  - `EntidadeEmissoraCC` string, nullable
  - `CartaConducao` string, nullable
  - `DataCartaConducao` string, nullable

## Other responses

- `422` — Validation Error

---

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