Passing no value in “AC_language” in the REST call

If you don’t pass any value in the “AC_language” section in the REST call or if “AC_language” is empty, you receive the default variant corresponding to “AC_language”.

Description description

Environment

Campaign Standard

Issue/Symptoms

  1. Click on the initialize content variant section to add multiple languages.
  2. In the content section, add default and English-US content.
  3. Let’s say you add the AC_language attribute in the event and publish it. Now, in the REST code, if you pass AC_language= en_us then it triggers en_us content.

However, what happens if you don’t pass any value in the AC_language section? Will you receive default content?

Resolution resolution

Yes, this is an expected behavior.

If there is AC_language, and if AC_language corresponds to a known variant, then this variant is used.

Otherwise, for all other cases, the default variant is used (if AC_language contains an unknown variant name or if AC_language is empty or does not exist in the event).

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f