---
title: "Update Contact"
method: PUT
path: "/v1/workspaces/{workspace_id}/contacts/{id}"
tags: ["Contacts"]
---

# Update Contact

`PUT /v1/workspaces/{workspace_id}/contacts/{id}`

## Request

- Base URL: `https://api.oxvo.com`
- URL: `https://api.oxvo.com/v1/workspaces/{workspace_id}/contacts/{id}`
- Auth: API key in header `api_access_token`

Update a contact belonging to the account using ID

## Request body

- ContactUpdatePayload
  - `name` string: name of the contact
  - `email` string: email of the contact
  - `blocked` boolean: whether the contact is blocked or not
  - `phone_number` string: phone number of the contact
  - `avatar` string, binary: Send the form data with the avatar image binary or use the avatar_url
  - `avatar_url` string: The url to a jpeg, png file for the contact avatar
  - `identifier` string: A unique identifier for the contact in external system
  - `additional_attributes` object: An object where you can store additional attributes for contact. example {"type":"customer", "age":30}
  - `custom_attributes` object: An object where you can store custom attributes for contact. example {"type":"customer", "age":30}, this should have a valid custom attribute definition.

## Response `204`

Success

- ContactBase
  - `id` number
  - `payload` object[]
    - `additional_attributes` object: The object containing additional attributes related to the contact
    - `availability_status` string: The availability status of the contact
    - `email` string: The email address of the contact
    - `id` integer: The ID of the contact
    - `name` string: The name of the contact
    - `phone_number` string: The phone number of the contact
    - `blocked` boolean: Whether the contact is blocked
    - `identifier` string: The identifier of the contact
    - `thumbnail` string: The thumbnail of the contact
    - `custom_attributes` object: The custom attributes of the contact
    - `last_activity_at` integer: The last activity at of the contact
    - `created_at` integer: The created at of the contact
    - `contact_inboxes` ContactInboxes[]
      - `source_id` string: Contact Inbox Source Id
      - `inbox` InboxContact
        - `id` number: ID of the inbox
        - `avatar_url` string: The avatar image of the inbox
        - `channel_id` number: The ID of the channel
        - `name` string: The name of the inbox
        - `channel_type` string: The type of the inbox
        - `provider` string: The provider of the inbox

## Other responses

- `403`: Access denied
- `404`: Contact not found

---

[API](https://skmtc.dev/oxvo/apis/oxvo-apis.md) · [All operations](https://skmtc.dev/oxvo/apis/oxvo-apis/llms.txt) · [OpenAPI document](https://skmtc.dev/oxvo/apis/oxvo-apis/revisions/9a8448cbd1fe?raw)
