Skip to main content
PATCH
Update Custom Attribute

Description

This API endpoint allows the update of an existing attribute within a specified target, either a collection or a list. Attributes define the nature and characteristics of the data stored within the target.

Path

string
required
Specifies the target type, which can be either “collection” or “list.”
string
required
A unique identifier for the target, either a collection ID or a list ID, depending on the target type.
string
required
A unique identifier for the attribute to be updated.

Body

string
The updated API key name used to store data in the collection or list for this field.
string
The updated input type or nature of the field. Possible values include text, number, checkbox, currency, date, timestamp, rating, status, select, multiselect, record-reference, actor-reference, domain, file, ai-wizard, email-address, phone-number.
string
The updated human-readable name of the field.
object
Updated configuration settings for the attribute, including currency display type, currency code, record reference, AI wizard, and date display type.
string
The updated default value for the attribute.
string
An updated description providing additional information about the attribute.
boolean
Indicates whether the attribute is editable (true/false).
boolean
Indicates whether the attribute supports multiple selections (true/false).
boolean
Indicates whether the attribute is required (true/false).
boolean
Indicates whether the attribute values must be unique (true/false).
string
The updated validation type for the attribute. Possible values include “none,” “email,” “url,” “phone,” “customRegex.”

Response

boolean
Indicates the success or failure of the attribute update. In this case, true signifies a successful operation.
string
Provides a human-readable message accompanying the response. In this instance, it confirms the successful update of the attribute.
object
An object containing details of the updated attribute: