Skip to the page

Update contact property

Changes the fallback of a property. Its key and its type stay as they are.

opensend.contactProperties.update(id, input)
Needs the scopeaudiences:writeFrom a terminalopensend contact-properties update

Input

id goes first, on its own, and the rest in one object. One object that holds id works too.

  • idstringRequired

    The id of the item. Up to 64 characters.

  • fallbackstring | number | boolean | nullRequired

    The new fallback, or null for none.

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.

  • idstring

    The id of the property.

  • keystring

    The name contacts hold a value under, and the name of its {{slot}}.

  • typestring

    What its values are: string, number or boolean.

    One ofstringnumberboolean

  • fallbackstring | number | boolean | null

    What fills its slot for a contact with no value, or null.

  • createdAtstring

    When the property was made.