Skip to content

Updates a contact's preferences for a list

Description

Updates a contact's preferences for a list.

You must specify all existing topic preferences in the TopicPreferences object, not just the ones that need updating; otherwise, all your existing preferences will be removed.

Usage

sesv2_update_contact(ContactListName, EmailAddress, TopicPreferences,
  UnsubscribeAll, AttributesData)

Arguments

  • ContactListName

    [required] The name of the contact list.

  • EmailAddress

    [required] The contact's email address.

  • TopicPreferences

    The contact's preference for being opted-in to or opted-out of a topic.

  • UnsubscribeAll

    A boolean value status noting if the contact is unsubscribed from all contact list topics.

  • AttributesData

    The attribute data attached to a contact.

Value

An empty list.

Request syntax

svc$update_contact(
  ContactListName = "string",
  EmailAddress = "string",
  TopicPreferences = list(
    list(
      TopicName = "string",
      SubscriptionStatus = "OPT_IN"|"OPT_OUT"
    )
  ),
  UnsubscribeAll = TRUE|FALSE,
  AttributesData = "string"
)