---
title: "Update Custom Attribute Definitions"
method: PATCH
path: "/api/v1/accounts/{account_id}/custom_attribute_definitions/{id}"
tags: ["Custom Attribute Definitions"]
---

# Update Custom Attribute Definitions

`PATCH /api/v1/accounts/{account_id}/custom_attribute_definitions/{id}`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/v1/accounts/{account_id}/custom_attribute_definitions/{id}`
- Auth: API key in header `api_access_token`

## Path parameters

- `account_id` integer, required
- `id` integer, required

## Request body

- object
  - `id` string
  - `filter_type` string
  - `attribute_model` 'conversation_attribute' | 'contact_attribute', required

## Response `200`

Success

- object
  - `id` string
  - `attribute_display_name` string
  - `attribute_display_type` integer
  - `attribute_description` string
  - `attribute_key` string
  - `regex_pattern` string
  - `regex_cue` string
  - `attribute_values` object
  - `attribute_model` integer
  - `default_value` integer
  - `required` boolean
  - `condition_to_view` object
  - `order_id` integer
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `401`: Unauthorized
- `404`: Not Found

---

[API](https://skmtc.dev/cloudhumans/apis/cloudchat-api.md) - [All operations](https://skmtc.dev/cloudhumans/apis/cloudchat-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cloudhumans/apis/cloudchat-api/revisions/18199bd17cc5?raw)
