Update a customer
Customers
Update a customer
Change the externalId on an existing customer record.
PUT
Update a customer
Rebrands a customer record by changing its
externalId. This is the
only mutable customer attribute.
firstname and displayName move with externalId — the create-time
invariant that firstname mirrors externalId for searchability is
preserved on update. If you depend on either of those fields in your
own systems, expect them to change.
Other customer attributes (mobileNo, emailAddress, names beyond
firstname) cannot be modified through this API. Close the customer and
create a new one if you need a different shape.
Two equivalent forms. Prefer the externalId form — address the
customer by the reference you already store, with no mapping to a numeric
LMS id. See Addressing a customer.
Path parameters
The customer’s current externalId. On the alternative
/v1/customers/{customer_id} form, the numeric LMS id is in the path
instead.Request body
The new external identifier. Must be unique across all customers
on the deployment.
Examples
Response
200 OK returns the updated customer object.
Errors
| Code | When |
|---|---|
invalid_argument | externalId missing or empty |
not_found | No customer with that externalId or id |
aborted | A different customer already has the requested externalId |

