Contacts

Updates a contact's name, client ID, tags, and its primary or secondary email, phone and address. Only the fields sent with a value change: blank or missing fields are left as they are, tags are added to the existing ones, and nothing is deleted. A primary_* value replaces the contact's primary email, phone or address; a secondary_* value replaces its oldest non-primary one. Either is added when the contact has none. Changing the primary email also changes the client portal login.

put/contacts/{contact_id}

Request

  • Base URL
    https://app2.gettruss.io/api/v1
  • URL
    https://app2.gettruss.io/api/v1/contacts/{contact_id}
  • Auth
    HTTP bearer

Path parameters

contact_idinteger required

ID of the contact to update

Request body

Example request

{
  "contact": {
    "first_name": "Jane",
    "primary_email": "jane@example.org",
    "secondary_phone": "(555) 123-4567",
    "primary_address": {
      "street_address": "1 Main St",
      "city": "Austin",
      "state": "TX",
      "zip": "78701"
    }
  }
}

Response

The updated contact

Changes