Create contact property
Names a value every contact can hold, with its type and what to use when a contact has none. From then on a value of another type is refused, and a broadcast fills {{key}} with the value or the fallback.
opensend.contactProperties.create(input)opensend contact-properties createInput
keystringRequiredThe name of the property, such as
plan: letters, digits and underscores. Up to 48 characters.typestringWhat its values are:
string,numberorboolean. Without it,string.One of
stringnumberbooleanfallbackstring | number | boolean | nullWhat fills
{{key}}for a contact with no value. Without it, nothing. Default:null.
Returns
The call resolves to the answer, already parsed. A call the API refuses throws OpenSendError with the code and the message of the answer. SDK lists the errors of the client itself.
object"contact_property"Always
contact_property.idstringThe id of the property.
keystringThe name contacts hold a value under, and the name of its
{{slot}}.typestringWhat its values are:
string,numberorboolean.One of
stringnumberbooleanfallbackstring | number | boolean | nullWhat fills its slot for a contact with no value, or
null.createdAtstringWhen the property was made.