Contendar Help

Update customer

Change fields on a customer. Send only the fields you want to change.

PATCH /customers/{customerId}

Authentication

Send your API key as a bearer token. See Authentication .

Path parameters

ParameterTypeNotes
customerIdUUIDThe ID of the customer.

Request body

FieldTypeRequiredNotes
projectIdUUIDyesThe project the customer belongs to.
namestringnoThe customer name.
emailstringnoThe customer email. Must be unique in the project.
companystringnoThe customer company.
jobTitlestringnoThe customer job title.
industrystringnoThe customer industry.
avatarUrlstringnoA public URL for the customer avatar.
socialHandlestringnoThe customer social handle.
companyLogoUrlstringnoA public URL for the company logo.
sourcestringnoOne of import, nps, testimonial, manual, generic.
{
  "projectId": "8a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d",
  "jobTitle": "VP Marketing"
}

Response

Returns the updated customer. See List customers for the meaning of each field.

Errors

Returns 404 if no customer with that ID exists in the project.

Example

curl -X PATCH "https://app.contendar.com/api/v1/customers/c1a2b3c4-d5e6-4f70-8a9b-0c1d2e3f4a5b" \
  -H "Authorization: Bearer ck_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{ "projectId": "YOUR_PROJECT_ID", "jobTitle": "VP Marketing" }'

Related pages

Was this helpful?