Chat icon

Chat

Interact with the Chat API

Actions253

Contact → Set Custom Attribute

AI-generated

Summary

Set a custom attribute on a selected contact within a chosen account.

Inputs

  • accountId (required) — The account to which the contact belongs, selected from a list or by ID.
  • contactId (required) — The contact to update, selected from a list or by ID.
  • specifyCustomAttributes — Method of providing custom attributes: 'definition', 'keypair', or 'json'.
  • customAttributesDefinition — When specifyCustomAttributes is 'definition', a collection of attribute objects each with 'key' and 'value' to set.
  • customAttributesParameters — When specifyCustomAttributes is 'keypair', a collection of attribute objects each with 'name' and 'value'.
  • customAttributesJson — When specifyCustomAttributes is 'json', a JSON string containing the custom attributes to set.

Output shape

single updated contact record

Returns the contact object with the applied custom attributes; may include optional fields and can be paginated in list responses.

Examples

Example 1: Add a 'department' custom attribute with value 'Support' to a contact

Select account, select contact, set specifyCustomAttributes to 'definition', add one attribute with key 'department' and value expression '$$(await $json.department)'.

Links

Discussion