Skip to content

Files

Latest commit

487e156 · May 24, 2024

History

History
24 lines (18 loc) · 1.4 KB

CreateAttribute.md

File metadata and controls

24 lines (18 loc) · 1.4 KB

Brevo::CreateAttribute

Properties

Name Type Description Notes
value String Value of the attribute. Use only if the attribute's category is 'calculated' or 'global' [optional]
is_recurring Boolean Type of the attribute. Use only if the attribute's category is 'calculated' or 'global' [optional]
enumeration Array<CreateAttributeEnumerationInner> List of values and labels that the attribute can take. Use only if the attribute's category is &quot;category&quot;. For example: [{&quot;value&quot;:1, &quot;label&quot;:&quot;male&quot;}, {&quot;value&quot;:2, &quot;label&quot;:&quot;female&quot;}] [optional]
type String Type of the attribute. Use only if the attribute's category is 'normal', 'category' or 'transactional' Type boolean is only available if the category is normal attribute Type id is only available if the category is transactional attribute Type category is only available if the category is category attribute [optional]

Example

require 'brevo'

instance = Brevo::CreateAttribute.new(
  value: COUNT[BLACKLISTED,BLACKLISTED,&lt;,NOW()],
  is_recurring: true,
  enumeration: null,
  type: text
)