Skip to main content
PATCH
Update a contact field

Authorizations

Authorization
string
header
required

An organization API key created in the Klatt console, sent as Authorization: Bearer <key>. The key belongs to one organization.

Path Parameters

list_uuid
string<uuid>
required

Unique identifier (UUID) of the contact list.

field_uuid
string<uuid>
required

Unique identifier (UUID) of the contact field.

Body

application/json

Changes to a custom field. Send only the properties you want to change.

confirm_removed_options
boolean
default:false

Set to true to confirm that values dropped from options are erased from the contacts that hold them. Otherwise removing an option is refused.

description
string | null

Explains what the field holds, up to 500 characters. It guides the automatic extraction of the value from conversations.

Maximum string length: 500
is_extractable
boolean | null

Whether the analysis of a conversation may fill this field automatically.

key
string | null

Identifier of the field. It cannot be changed: omit it or send the current key.

Required string length: 1 - 40
Pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
kind
enum<string> | null

Type of the field. It cannot be changed: omit it or send the current kind.

Available options:
text,
number,
boolean,
enum
label
string | null

Name shown for the field, up to 80 characters.

Required string length: 1 - 80
options
string[] | null

Allowed values of an enum field, replacing the current ones: 1 to 50 distinct values of up to 80 characters. Removing a value requires confirm_removed_options.

Required string length: 1 - 80
position
integer | null

Display order of the field, from 0 to 1000.

Required range: 0 <= x <= 1000
update_condition
string | null

When an extracted value may be applied, in plain words, up to 500 characters.

Maximum string length: 500
update_mode
enum<string> | null

How an extracted value treats an existing one: overwrite replaces it, set_once only fills the field while it is empty.

Available options:
overwrite,
set_once

Response

Successful Response

description
string | null
required

Explains what the field holds. null when not set.

field_uuid
string<uuid>
required

Unique identifier (UUID) of the field.

is_extractable
boolean
required

Whether the analysis of a conversation may fill this field automatically.

key
string
required

Identifier of the field and key of its value in a contact's additional_fields.

kind
enum<string>
required

Type of value the field holds: text, number, boolean or enum.

Available options:
text,
number,
boolean,
enum
label
string
required

Name shown for the field.

options
string[] | null
required

Allowed values of an enum field. null for other kinds.

position
integer
required

Display order of the field.

update_condition
string | null
required

When an extracted value may be applied, in plain words. null when not set.

update_mode
enum<string>
required

How an extracted value treats an existing one: overwrite or set_once.

Available options:
overwrite,
set_once