Mega icon

Mega

Work with Mega API

Custom Attribute → Update

AI-generated

Summary

Update an existing custom attribute by specifying its ID and the fields to modify, such as description, display name, display type, key, model, allowed values, default value, and validation regex.

Inputs

  • Custom Attribute ID (required) — The numeric ID of the custom attribute to update.
  • Update Fields — Fields to update on the custom attribute, including attribute description, display name, display type (e.g., text, number, currency), unique key, model (conversation or contact attribute), allowed values for list types (as JSON array), default value, regex validation pattern, and validation message.

Output shape

a single record representing the updated custom attribute

The operation returns the updated custom attribute object. Only the specified fields in 'Update Fields' are modified; unspecified fields remain unchanged.

Links

Discussion