---
title: "Update a contact channel"
method: PATCH
path: "/contact-channels/{user_id}/{contact_channel_id}"
tags: ["Contact Channels"]
---

# Update a contact channel

`PATCH /contact-channels/{user_id}/{contact_channel_id}`

Updates an existing contact channel. Only the values provided will be updated.

## Path parameters

- `user_id` string, required — the user that the contact channel belongs to
- `contact_channel_id` string, required — the target contact channel

## Query parameters

- `user_id` string — The ID of the user, or the special value `me` for the currently authenticated user
- `contact_channel_id` string

## Request body

- object
  - `value` string — The value of the contact channel. For email, this should be a valid email address.
  - `type` 'email' — The type of the contact channel. Currently only "email" is supported.
  - `used_for_auth` boolean — Whether the contact channel is used for authentication. If this is set to `true`, the user will be able to sign in with the contact channel with password or OTP.
  - `is_primary` boolean — Whether the contact channel is the primary contact channel. If this is set to `true`, it will be used for authentication and notifications by default.

## Response `200`

Successful response

- object
  - `user_id` string, required — The unique identifier of the user
  - `id` string, required — The unique identifier of the contact channel
  - `value` string, required — The value of the contact channel. For email, this should be a valid email address.
  - `type` 'email', required — The type of the contact channel. Currently only "email" is supported.
  - `used_for_auth` boolean, required — Whether the contact channel is used for authentication. If this is set to `true`, the user will be able to sign in with the contact channel with password or OTP.
  - `is_verified` boolean, required — Whether the contact channel has been verified. If this is set to `true`, the contact channel has been verified to belong to the user.
  - `is_primary` boolean, required — Whether the contact channel is the primary contact channel. If this is set to `true`, it will be used for authentication and notifications by default.

---

[API](https://skmtc.net/hexclave/apis/hexclave-rest-api.md) · [All operations](https://skmtc.net/hexclave/apis/hexclave-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hexclave/hexclave-rest-api/versions/86dcd8c9953c/schema)
