Sign in

Upsert contact in phonebook

documented

Upsert (update/insert) a contact in a phonebook

POST /phonebooks/{id}/upsert_contact/Phonebooksno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.callhub.io/v1/phonebooks/{{$phonebook_id}}/upsert_contact/" \
  -X POST \
  -H "Authorization: Token {{CALLHUB_API_KEY}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"first_name": "{{$first_name}}", "last_name": "{{$last_name}}", "contact": "{{$phone}}", "mobile": "{{$mobile}}", "email": "{{$email}}", "country_code": "{{$country_code}}", "address": "{{$address}}", "city": "{{$city}}", "state": "{{$state}}", "company_name": "{{$company_name}}", "company_website": "{{$company_website}}", "job_title": "{{$job_title}}", "custom_fields": {{$custom_fields}}}'