cURL
curl --request PUT \ --url https://app.blinksale.test/api/v1/clients/{clientId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "Acme Inc.", "email": "[email protected]", "kind": "BUSINESS", "profile": { "company_name": "Acme Inc.", "website": "https://acme.com" }, "document_defaults": { "currency": "USD" }, "address": { "line1": "123 Main St", "line2": "Suite 101", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US" } } '
{ "success": true, "message": "Client updated successfully", "data": { "id": "01jtbf0c9zaraqx3swthf88n5y", "name": "Acme Inc", "email": "[email protected]", "kind": "BUSINESS", "kind_name": "Business", "profile": { "company_name": "Acme Inc", "website": "https://acme.com" }, "address": { "line1": "123 Main St", "line2": "Suite 101", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US" }, "document_defaults": { "currency": "USD" }, "contact_count": 3, "note_count": 2, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } }
Update an existing client
Access token obtained from the /v1/auth/login endpoint
The ID of the client to update
"Acme Inc."
"[email protected]"
BUSINESS
PERSON
Show child attributes
Client updated successfully
true
"Client updated successfully"