---
title: "Set custom-field values on contacts (v2)"
method: POST
path: "/v2/custom-fields/contacts/values"
tags: ["custom-fields"]
---

# Set custom-field values on contacts (v2)

`POST /v2/custom-fields/contacts/values`

Batch-set per-contact custom-field VALUES (the `contacts_custom_fields` rows, not the field definitions). Body: `{ custom_fields: [{ contact_id, custom_field_id, text_value?, array_value?, date_value? }] }`. **Requires `Idempotency-Key`.** Returns `{ data: { affected } }` (count of successful updates; per-row failures are skipped and logged).

## Headers

- `Idempotency-Key` string, required

## Request body

- object
  - `custom_fields` object[], required
    - `contact_id` string, uuid, required
    - `custom_field_id` string, uuid, required
    - `text_value` string
    - `date_value` string
    - `array_value` string[]

## Response `200`

Successful response

- object
  - `data` object, required
    - `affected` integer, required
    - `ids` string[]
    - `failed` object[]
      - `id` string, required
      - `error` object, required
        - `code` string, required
        - `message` string, required

## Other responses

- `400` — Request body failed validation.
- `401` — Missing or invalid API key.
- `403` — Valid key, insufficient permission.
- `404` — Resource does not exist.
- `409` — Request body failed validation.
- `429` — Rate limit exceeded.
- `500` — Unexpected server error.

---

[API](https://skmtc.net/getdex/apis/dex-public-api.md) · [All operations](https://skmtc.net/getdex/apis/dex-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getdex/dex-public-api/versions/6f01cd52ac12/schema)
