Edit Client
Prod Env
{{subdomain}}/api2
Prod Env
{{subdomain}}/api2
PUT
{{subdomain}}/api2
Last modified:2025-03-23 23:11:40
Maintainer:Not configured
id
: Client ID (required)business_name
(string): Business namefirst_name
(string): First namelast_name
(string): Last nameemail
(string): Email addresspassword
(string): Password for client portal accessphone1
(string): Primary phone numberphone2
(string): Secondary phone numberaddress1
(string): Street address line 1address2
(string): Street address line 2city
(string): Citystate
(string): State/provincepostal_code
(string): Postal/ZIP codecountry_code
(string): 2-letter country code (e.g., US, UK)website
(string): Website URLtax_registration
(string): Tax registration numbernotes
(string): Internal notes about the clientgroup_id
(integer): Client group IDactive
(integer): Status (0: inactive, 1: active)custom_fields
(object): Custom field values{
"result": "success",
"code": 200,
"data": {
"Client": {
"id": 15,
// Updated client fields...
}
},
"message": "Client updated successfully"
}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PUT '{{subdomain}}/api2/api2/clients/{{id}}.json' \
--header 'Content-Type: text/plain' \
--data-raw '{
"Client": {
"business_name": "ACME Corporation International",
"phone1": "555-9999",
"email": "updated.email@example.com",
"website": "https://acmecorp-intl.example.com",
"notes": "Global enterprise client - priority support",
"custom_fields": {
"industry": "Technology and Manufacturing",
"annual_revenue": "$50M+"
}
}
}'
Response Response Example
200 - Success Response
{
"result": "success",
"code": 200,
"data": {
"Client": {
"id": 15,
"business_name": "ACME Corporation",
"phone1": "555-5678",
"email": "updated.email@example.com",
"modified": "2023-03-24 09:15:22"
}
},
"message": "Client updated successfully"
}
Request
Body Params text/plain