This document is generated by Apidog. Apidog: All-in-one workspace for API design, document, debug, test, mock
This document is generated by Apidog. Apidog: All-in-one workspace for API design, document, debug, test, mock
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"
}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+"
}
}
}'{
"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"
}