Update a client
PATCH/api/client/:id
- crm.edit: allows to update resources.
Here the dedicated support page.
Request
Path Parameters
The ID of the client to update
Header Parameters
The company you want to interact with
The API version you want to use
- application/json
Body
Possible values: <= 255 characters
Corporate name of the client
Possible values: <= 80 characters
Acronym of client name
Possible values: <= 80 characters
Email address of the client
Notes about the client
Possible values: <= 250 characters
Client website
Possible values: <= 250 characters
Client linkedin profile
Client description
Possible values: <= 80 characters
Client street address
Possible values: <= 80 characters
Client zip code
Possible values: <= 80 characters
Client town
Possible values: <= 80 characters
Client country name. The list of all accepted country name is available at https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes. It is also accepted the Italian version of a country name.
Possible values: <= 80 characters
Client VAT number
Client payment condition
Client sdi code
Possible values: <= 320 characters
Client pec
Possible values: <= 320 characters
Client pec
Client registration number
Possible values: <= 255 characters
Client legal name
Possible values: <= 250 characters
Client intent code
Client intent date in YYYY-MM-DD format
Client phone number
Client tax reference
ID of the group to associate with this client
ID of the bank account to associate with this client
ID of the vat rate to associate with this client
ID of the payment term to associate with this client
Responses
- 200
- 400
- 401
Returns the client updated.
- application/json
- Schema
- Example (from schema)
Schema
Possible values: >= 1
Possible values: <= 255 characters
Possible values: <= 50 characters
Possible values: <= 80 characters
Possible values: <= 250 characters
Possible values: <= 250 characters
Possible values: <= 80 characters
Possible values: <= 80 characters
Possible values: <= 80 characters
Possible values: <= 80 characters
Possible values: <= 80 characters
Possible values: >= 1
Possible values: <= 320 characters
Possible values: <= 320 characters
Possible values: <= 255 characters
Possible values: <= 250 characters
Declaration of intent date
Possible values: >= 1
Possible values: >= 1
Possible values: >= 1
Possible values: >= 1
{
"id": 1,
"created_at": "2025-02-13T09:26:18.425Z",
"updated_at": "2025-02-13T09:26:18.425Z",
"corporate_name": "First client",
"acronym": "First client acronym",
"email": "example@example.com",
"notes": "Some notes",
"website": "https://example.com",
"linkedin": "https://linkedin.com/in/example",
"description": "A brief description",
"street": "123 Main St",
"zip_code": "12345",
"town": "Townsville",
"country": "United States",
"vat": "123456789",
"payment_condition": "Payment terms",
"group_company": 1,
"sdi_code": "SDI12345",
"pec": "pec@example.com",
"administration_email": "admin@example.com",
"company_registration_number": "1234567890",
"legal_name": "Legal Name",
"intent_code": "Intent Code",
"intent_date": "2024-01-01",
"phone": "123-456-7890",
"tax_reference": "Tax Reference",
"group_id": 1,
"bank_account_id": 1,
"vat_rate_id": 1,
"payment_term_id": 1
}
Validation failed
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Error unique key
Human-readable message describing the error
failures
object[]
List of validation errors
Name of the field causing the error
Human-readable description of the error
{
"key": "invalid_data",
"message": "You provided invalid data. Check 'failures' for details.",
"failures": [
{
"field": "string",
"message": "string"
}
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Error unique key
Human-readable message describing the error
{
"key": "string",
"message": "string"
}