---
title: "Aggiornamento Account Cliente"
method: POST
path: "/api/client/update"
---

# Aggiornamento Account Cliente

`POST /api/client/update`

Questa chiamata consente ai partner di aggiornare la tipologia di account **e/o il nome** di un cliente associato al proprio Account Partner. L’API verifica che il cliente appartenga al partner tramite l’API Key. In caso di successo, la sessione del cliente verrà resettata solo se viene modificata la tipologia di account.

## Query parameters

- `api_key` string, required

## Request body

- object
  - `id_client` string, required — ID del cliente da aggiornare.
  - `account_type` 'test' | 'baby' | 'full' | 'disable' — Tipologia di account. - `test` : 100 crediti e scadenza account dopo 14 giorni dalla creazione. - `baby` : 2000 crediti a refill annuale. - `full` : nessuna limitazione (account attuali). - `disable` : l’account viene disattivato.
  - `nome_cliente` string — Nuovo nome del cliente. Se valorizzato, aggiorna anche il nome utente associato.

## Response `200`

OK

- object
  - `id_client` string — ID del cliente.
  - `account_type` string — Tipologia di account assegnata.
  - `nome_cliente` string — Nome aggiornato del cliente (se modificato).
  - `user_name` string — Nome aggiornato dell’utente associato.

## Other responses

- `400` — Errore di validazione o API Key non valida.
- `500` — Errore interno durante l’aggiornamento del cliente.

## Changes

> 18 revisions in range; 1 could not be searched.

- **2025-10-15** `8ef07f95b6ed` — 6 info
  - added the new optional request property `nome_cliente`
  - the request property `account_type` became optional
  - added the non-success response with the status `400`
  - added the non-success response with the status `500`
  - …2 more
- **2025-04-17** `cfdacacb7546` — 1 info
  - endpoint added
- **2025-04-15** `919eb7a392aa` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/simplenetworks/apis/trilly-api/changes/api/client/update/post.md)

---

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