---
title: "Update a custom attribute"
method: PUT
path: "/custom-attributes/{id}"
tags: ["Custom Attributes"]
---

# Update a custom attribute

`PUT /custom-attributes/{id}`

Update a custom contact attribute.

## Path parameters

- `id` string, required

## Request body

- union
  - UPDATECONTACTATTRIBUTETEXT
    - `name` string — The updated name of the custom attribute
    - `resource` 'contact'
    - `type` 'number' | 'text' | 'datetime' | 'dateonly' | 'single_select' | 'multi_select'
  - UPDATECONTACTATTRIBUTENUMBER
    - `name` string — The updated name of the custom attribute
    - `resource` 'contact'
    - `type` 'number' | 'text' | 'datetime' | 'dateonly' | 'single_select' | 'multi_select'
  - UPDATECONTACTATTRIBUTEDATEONLY
    - `name` string — The updated name of the custom attribute
    - `resource` 'contact'
    - `type` 'number' | 'text' | 'datetime' | 'dateonly' | 'single_select' | 'multi_select'
  - UPDATECONTACTATTRIBUTEDATETIME
    - `name` string — The updated name of the custom attribute
    - `resource` 'contact'
    - `type` 'number' | 'text' | 'datetime' | 'dateonly' | 'single_select' | 'multi_select'
  - UPDATECONTACTATTRIBUTESINGLESELECT
    - `name` string — The updated name of the custom attribute
    - `option_values` PAUpdateContactAttributeOptionDTO[] — The updated option values for the single select attribute
      - `id` string — The unique identifier of an existing attribute option. Leave null to create a new option
      - `value` string — The display value of the attribute option
    - `resource` 'contact'
    - `type` 'number' | 'text' | 'datetime' | 'dateonly' | 'single_select' | 'multi_select'
  - UPDATECONTACTATTRIBUTEMULTISELECT
    - `name` string — The updated name of the custom attribute
    - `option_values` PAUpdateContactAttributeOptionDTO[] — The updated option values for the multi select attribute
      - `id` string — The unique identifier of an existing attribute option. Leave null to create a new option
      - `value` string — The display value of the attribute option
    - `resource` 'contact'
    - `type` 'number' | 'text' | 'datetime' | 'dateonly' | 'single_select' | 'multi_select'

## Response `200`

OK

- union
  - CONTACTATTRIBUTERESPONSETEXT
    - `id` string — The unique identifier of the custom attribute
    - `name` string — The name of the custom attribute
    - `resource` 'contact'
    - `type` 'number' | 'text' | 'datetime' | 'dateonly' | 'single_select' | 'multi_select'
  - CONTACTATTRIBUTERESPONSENUMBER
    - `id` string — The unique identifier of the custom attribute
    - `name` string — The name of the custom attribute
    - `resource` 'contact'
    - `type` 'number' | 'text' | 'datetime' | 'dateonly' | 'single_select' | 'multi_select'
  - CONTACTATTRIBUTERESPONSEDATEONLY
    - `id` string — The unique identifier of the custom attribute
    - `name` string — The name of the custom attribute
    - `resource` 'contact'
    - `type` 'number' | 'text' | 'datetime' | 'dateonly' | 'single_select' | 'multi_select'
  - CONTACTATTRIBUTERESPONSEDATETIME
    - `id` string — The unique identifier of the custom attribute
    - `name` string — The name of the custom attribute
    - `resource` 'contact'
    - `type` 'number' | 'text' | 'datetime' | 'dateonly' | 'single_select' | 'multi_select'
  - CONTACTATTRIBUTERESPONSESINGLESELECT
    - `id` string — The unique identifier of the custom attribute
    - `name` string — The name of the custom attribute
    - `option_values` PAContactAttributeSelectOptionDTO[] — The available option values of the single select custom attribute
      - `id` string — The unique identifier of the attribute option
      - `value` string — The display value of the attribute option
    - `resource` 'contact'
    - `type` 'number' | 'text' | 'datetime' | 'dateonly' | 'single_select' | 'multi_select'
  - CONTACTATTRIBUTERESPONSEMULTISELECT
    - `id` string — The unique identifier of the custom attribute
    - `name` string — The name of the custom attribute
    - `option_values` PAContactAttributeSelectOptionDTO[] — The available option values of the multi select custom attribute
      - `id` string — The unique identifier of the attribute option
      - `value` string — The display value of the attribute option
    - `resource` 'contact'
    - `type` 'number' | 'text' | 'datetime' | 'dateonly' | 'single_select' | 'multi_select'

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

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