Update Contact
Update an existing contact in Customerscore.
For interactive API documentation, see the Swagger reference (opens in a new tab).
Endpoint
| Method | URL |
|---|---|
| PUT | https://api.customerscore.io/api/v1/customer/{customerExternalId}/contact/{contactExternalId} |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
customerExternalId | string | Yes | Customer external ID |
contactExternalId | string | Yes | Contact external ID |
Request Body
All fields in the request body are optional. Only include the fields you want to update.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | Updated contact name |
Example Request
curl -X PUT "https://api.customerscore.io/api/v1/customer/12345/contact/C12345" \
-H "Content-Type: application/json" \
-H "customerscore-key: your-generated-key" \
-d '{
"name": "John Smith"
}'Response Codes
| Code | Description |
|---|---|
| 200 | The contact has been successfully updated |
| 400 | Bad request |
| 401 | Unauthorized - Missing customerscore-key in the header |
| 403 | Forbidden - Invalid key |
| 404 | Customer or contact not found |
| 405 | Method Not Allowed - Only PUT method is allowed |
| 406 | Not Acceptable |