Use this endpoint to update a customer’s editable top-level fields. It performs a
partial update, so only the fields you supply change.
Patch semantics:
title: omit to leave unchanged; send a new value to replace it.
expectedCloseDate: a Unix timestamp in seconds. Omit to leave unchanged, or
set clearExpectedCloseDate to true to remove the current value.
assigneeIds: a nonempty list of member IDs replaces the current assignees. An
omitted or empty list preserves them unless clearAssignees is true. A
nonempty list takes precedence over clearAssignees.
teamIds: a nonempty list of team IDs replaces the current teams. An omitted or
empty list preserves them unless clearTeams is true. A nonempty list takes
precedence over clearTeams.
Updates a customer's editable top-level fields. Only supplied fields change: omit a field to preserve it. Assignee and team lists replace the current assignments when nonempty; send the matching clear flag to remove all assignees or teams. A nonempty list takes precedence over its clear flag. Custom data fields are not modified here; use PatchCustomerDataFields for those. This operation is not idempotent and must not be blindly retried.
RequestPatchCustomerRequest
ResponsePatchCustomerResponse
PatchCustomerRequest
Field
Type
Description
id
string
Customer to update.
title
optional string
New title. Omit to leave the title unchanged.
expected_close_date
optional int64
New expected close date as a Unix timestamp in seconds. Omit to leave it unchanged; set clear_expected_close_date to remove the current value.
clear_expected_close_date
bool
Remove the customer's expected close date. Ignored when expected_close_date is supplied.
assignee_ids
repeated string
Member IDs to assign to the customer. A nonempty list replaces the current assignees. An empty or omitted list preserves them unless clear_assignees is set. A nonempty list takes precedence over clear_assignees.
clear_assignees
bool
Remove all assignees. Ignored when assignee_ids is nonempty.
team_ids
repeated string
Team IDs to assign to the customer. A nonempty list replaces the current teams. An empty or omitted list preserves them unless clear_teams is set. A nonempty list takes precedence over clear_teams.
clear_teams
bool
Remove all teams. Ignored when team_ids is nonempty.
PatchCustomerResponse
Field
Type
Description
customer
Customer
The customer after the update, projected to the fields the API key can see.
Related Types
Customer
Field
Type
Description
id
string
title
string
custom_fields
map<string, string>
Name-keyed compatibility representation; keys are not internal UUIDs.
reference_number
string
created_at
int64
updated_at
int64
kind
string
"prospect" until the customer buys (a confirmed quote, a payment that received money or a work order), then "customer". Its prospects are in ListCustomerProspects.
owner
CustomerOwner
Deprecated: customers no longer have an owner of their own, so this is always unset. Quotes and orders keep their owner.
prospect_owner
CustomerOwner
The owner of its current prospect (its newest open prospect, else the one it was won by); unset when none. Each prospect has its own owner: see ListCustomerProspects.
contact_attempt_count
int32
Contact attempts on the customer: how many, and the latest.
last_contact_attempt
ContactAttemptSummary
expected_close_date
optional int64
As set by CreateCustomer and PatchCustomer: the expected close date (Unix seconds; unset when none) and the assigned members and teams.
assignee_ids
repeated string
team_ids
repeated string
CustomerOwner
Field
Type
member_id
string
first_name
string
last_name
string
ContactAttemptSummary
Field
Type
Description
occurred_at
int64
Unix seconds.
channel
string
phone, email, whatsapp, sms or in_person.
outcome
string
The result's name; empty when the attempt has no result.
outcome_kind
string
follow_up, negative or positive; empty without a result.