> For the complete documentation index, see [llms.txt](https://docs.cekat.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cekat.ai/api-documentation/crm/contact/update-a-contact.md).

# Update a contact

Updates a contact's standard fields and labels. Send only the fields you want to change. To change custom property values, use `PUT /api/crm/contact/{id}/property`.

```json
{"openapi":"3.0.3","info":{"title":"Cekat Open API","version":"1.0.0"},"tags":[{"name":"Contact","description":"Contacts are the people your business talks to. Each contact has standard fields (name, phone number, email, and so on) plus **custom properties** that you define as columns on your contact board.\n\n## Custom properties\n1. Call `GET /api/crm/contact/filter-fields` or `GET /api/crm/contact/{id}/property` to see the available properties and their column IDs and types.\n2. Read a contact's values from `crm_column` in `GET /api/crm/contact/{contact_id}`. Values are keyed by property name.\n3. Write values with `PUT /api/crm/contact/{id}/property`, or with `values` when creating a contact.\n4. Create new properties with `POST /api/crm/contact/property`.\n"}],"servers":[{"url":"https://api.cekat.ai","description":"Production"}],"security":[{"CekatApiKey":[]},{"BearerAuth":[]}],"components":{"securitySchemes":{"CekatApiKey":{"type":"apiKey","in":"header","name":"api_key","description":"Your business's Cekat API key, from **Settings → Developers & API** in the Cekat dashboard (https://chat.cekat.ai/developers?section=apikeys). Available on the Business and Enterprise plans."},"BearerAuth":{"type":"http","scheme":"bearer","description":"The same Cekat API key, sent as `Authorization: Bearer YOUR_API_KEY`. Accepted only by endpoints under `/api/...`."}},"schemas":{"Contact":{"type":"object","description":"A contact with its standard fields, relations and custom property values. Additional fields may be present.","additionalProperties":true,"properties":{"id":{"type":"string","format":"uuid"},"display_name":{"type":"string"},"phone_number":{"type":"string","nullable":true},"country_code":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"type":{"type":"string","description":"Channel the contact came from, for example `whatsapp`."},"platform_id":{"type":"string","nullable":true},"note":{"type":"string","nullable":true},"additional_data":{"type":"object","nullable":true,"additionalProperties":true},"stage_id":{"type":"string","format":"uuid","nullable":true},"agent_id":{"type":"string","format":"uuid","nullable":true,"description":"The contact owner's agent ID."},"company_id":{"type":"string","format":"uuid","nullable":true},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time","nullable":true},"created_by_name":{"type":"string"},"business":{"$ref":"#/components/schemas/NamedRef"},"stage":{"$ref":"#/components/schemas/NamedRef"},"agent":{"$ref":"#/components/schemas/NamedRef"},"pipeline_status":{"$ref":"#/components/schemas/NamedRef"},"company":{"type":"object","nullable":true,"additionalProperties":true},"conversations":{"type":"array","description":"The contact's conversations, one per inbox.","items":{"type":"object","additionalProperties":true}},"crm_column":{"type":"object","description":"Custom property values, keyed by property (column) name.","additionalProperties":true}}},"NamedRef":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}}},"ApiError":{"type":"object","description":"Error body returned by the `/api/...` endpoints.","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"statusCode":{"type":"integer"},"error":{"type":"object","properties":{"message":{"type":"string"}}},"correlationId":{"type":"string","description":"Request ID. Include it when contacting Cekat support."}}},"CrmConflictError":{"type":"object","description":"Returned when the email or phone number already belongs to another contact.","properties":{"statusCode":{"type":"integer"},"error":{"type":"object","properties":{"phone_error":{"type":"string"},"email_error":{"type":"string"},"contact_id":{"type":"string","format":"uuid","description":"The existing contact with this email, when the email conflicts."},"contact_name":{"type":"string"}}}}},"RateLimitError":{"type":"object","properties":{"message":{"type":"string"}}}},"responses":{"ApiBadRequest":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"ApiUnauthorized":{"description":"The API key is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"TooManyRequests":{"description":"Rate limit exceeded. Wait and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}}},"paths":{"/api/crm/contact/{contact_id}":{"put":{"tags":["Contact"],"operationId":"UpdateContact","summary":"Update a contact","description":"Updates a contact's standard fields and labels. Send only the fields you want to change. To change custom property values, use `PUT /api/crm/contact/{id}/property`.","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"display_name":{"type":"string"},"phone_number":{"type":"string"},"email":{"type":"string","format":"email"},"note":{"type":"string"},"additional_data":{"type":"object","additionalProperties":true,"description":"Replaces the contact's additional data."},"company_id":{"type":"string","format":"uuid"},"stage_id":{"type":"string","format":"uuid"},"contact_owner_id":{"type":"string","format":"uuid","description":"Agent ID of the new contact owner. The agent must be active."},"label_ids":{"type":"array","description":"Contact label IDs to add.","items":{"type":"string","format":"uuid"}}}}}}},"responses":{"200":{"description":"The updated contact.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"data":{"$ref":"#/components/schemas/Contact"}}}}}},"400":{"$ref":"#/components/responses/ApiBadRequest"},"401":{"$ref":"#/components/responses/ApiUnauthorized"},"404":{"description":"The contact, company, stage, owner or label was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"The new phone number or email already belongs to another contact.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmConflictError"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"}}}}}}
```
