Helps you to easier update your clients
/clients/{contact_id}/update
https://api.oauth.pabau.com/{api_key}/clients/{contact_id}/update
Request
Query Parameters: | |
api_key * | API Keyrequired |
contact_id* | System ID of the clientint |
first_name
|
The first name of clientstring |
last_name
|
The last name of clientstring |
The email of clientstring |
|
DOB | The date of birthstring (Y-m-d) format |
salutation | The salutation of the clientstring
|
gender | The gender (eg. Male, Female, Other)string
|
phone | The phone numberstring case sensitive |
mobile | The mobile number of clientstring case sensitive |
label | The client labelstring (comma seperated) case sensitive |
mailing_country
|
The country of the client
case sensitive |
mailing_county
|
The county or state of the client
case sensitive |
mailing_city
|
The city/town of the client
case sensitive |
mailing_street
|
The street of the client
case sensitive |
mailing_postal
|
The postcode/zip of the clientstring case sensitive |
source
|
The marketing source
case sensitive |
owner
|
The full name of the client owner (usually who created the client)
case sensitive |
avatar
|
The URL of photo avatarstring case sensitive |
is_active
|
Is the client active or not (1 or 0)int default: 1 |
location_name
|
The full name of the location (usually where the client most visits)
case sensitive |
opt_in_email
|
Did the client opt into email (1 or 0)int default: 1 |
opt_in_phone
|
Did the client opt into email (1 or 0)int default: 1 |
opt_in_post
|
Did the client opt into post (1 or 0)int default: 1 |
opt_in_sms
|
Did the client opt into sms (1 or 0)int default: 1 |
opt_in_newsletter
|
Did the client opt into newsletters (1 or 0)int default: 1 |
custom_field_name
|
Name of the custom field. The following rules apply: 2. Names Without Spaces: Field names that do not contain spaces should remain as they are, without modification. 3.Batch Updated Supported: Multiple custom fields can be updated at the same time. To update multiple fields, specify each field name in the request with the respective value. The API will process and update each specified custom field accordingly. |
Response sample
application/json
{
"success": true,
"message": "Contact updated successfully."
}