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
| Parameter | Type | Notes |
customerId | UUID | The ID of the customer. |
Request body
| Field | Type | Required | Notes |
projectId | UUID | yes | The project the customer belongs to. |
name | string | no | The customer name. |
email | string | no | The customer email. Must be unique in the project. |
company | string | no | The customer company. |
jobTitle | string | no | The customer job title. |
industry | string | no | The customer industry. |
avatarUrl | string | no | A public URL for the customer avatar. |
socialHandle | string | no | The customer social handle. |
companyLogoUrl | string | no | A public URL for the company logo. |
source | string | no | One 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?