---
title: "Patch custom attributes for a contact"
method: PATCH
path: "/v1/contacts/{id}/custom-attributes"
tags: ["custom_attributes"]
---

# Patch custom attributes for a contact

`PATCH /v1/contacts/{id}/custom-attributes`

Upserts one or more custom attribute values for a contact. Requires a token with write access.

## Path parameters

- `id` string, required — Contact id.

## Query parameters

- `workspace_id` string — Optional workspace override. If omitted, Conduit resolves the contact's workspace automatically.

## Request body

- object — Request body for upserting custom attribute values on a contact. Date attributes accept YYYY-MM-DD strings.
  - `attributes` object[], required
    - `id` string, required
    - `value` union, required
      - string
      - number
      - boolean
      - unknown
      - union[]
        - union
          - string
          - number
      - unknown

## Response `200`

Updated contact custom attributes

- object — Custom attributes for a contact.
  - `data` object[], required
    - `id` string, required
    - `workspace_id` string, required
    - `name` string, required
    - `type` string, required
    - `options` object[], nullable, required
      - `value` string, required
      - `color` string, required
    - `order` number, nullable, required
    - `section_id` string, nullable, required
    - `section_name` string, nullable, required
    - `value` union, required
      - string
      - number
      - boolean
      - unknown
      - union[]
        - union
          - string
          - number
      - unknown

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `429` — Rate limit exceeded

---

[API](https://skmtc.dev/conduit/apis/conduit-api.md) · [All operations](https://skmtc.dev/conduit/apis/conduit-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/conduit/conduit-api/revisions/3ad7e17f96ad/schema)
