> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PopupUpdateInput

> The popup builder's Settings tab. Omitted fields are unchanged. Pass at least one.

**allowPageInteraction** `Boolean`

Whether shoppers can scroll and click the page behind the open popup.

**campaignTargeting** `[PopupCampaignTargetingInput](/docs/api-reference/v3/reference/marketing/popup-campaign-targeting-input)`

Which UTM campaigns the popup is limited to.

**fields**

**mode** `[PopupCampaignTargetingMode!](/docs/api-reference/v3/reference/marketing/popup-campaign-targeting-mode)` *required*

Whether the popup is limited by UTM campaign.

**utmCampaigns** `[String!]`

The `utm_campaign` values that show the popup, trimmed, none blank. Replaces the whole list; omit it to keep the stored one. To add one, send the current list plus the new value; an empty list removes them all, so every visitor sees the popup.

**closeButton** `[PopupCloseButtonInput](/docs/api-reference/v3/reference/marketing/popup-close-button-input)`

How the close (X) button looks.

**fields**

**backgroundColor** `String`

The color of the circle behind the X, as a hex color.

**iconColor** `String`

The X's color, as a hex color such as #A3A3A3.

**showBackground** `Boolean`

Whether the X has a colored circle behind it.

**completionTags** `[String!]`

Tags added to each customer who completes the popup, trimmed and de-duplicated, none blank. Replaces the whole list. To add one, send the current tags plus the new tag; an empty list removes them all.

**countryTargeting** `[PopupCountryTargetingInput](/docs/api-reference/v3/reference/marketing/popup-country-targeting-input)`

Which shopper countries the popup is shown in.

**fields**

**countries** `[\[CountryCode!\]](/docs/api-reference/v3/reference/common/country-code)`

The countries to list. Replaces the whole list; omit it to keep the stored one. To add one, send the current list plus the new country; an empty list removes them all, and with INCLUDE the popup then shows nowhere.

**mode** `[PopupCountryTargetingMode!](/docs/api-reference/v3/reference/marketing/popup-country-targeting-mode)` *required*

Which countries the popup is shown in. INCLUDE or EXCLUDE needs at least two countries in the store's Shopify Markets.

**device** `[PopupDevice](/docs/api-reference/v3/reference/marketing/popup-device)`

Which devices show the popup. DESKTOP\_ONLY or MOBILE\_ONLY also shows the popup's elements hidden on the other device, as the builder does, so none is left invisible.

**discountCodeId** `ID`

The discount to offer in the signup flows the popup starts: the `id` of one of the store's discount codes with no `category` or the MARKETING category (what `createDiscountCode` makes) that isn't a dynamic range and still exists in the store's commerce platform, the ones the builder's discount menu lists. Null turns the discount offer off.

**frequencyCapHours** `Int`

Hours before the popup shows to the same visitor again, from 1 to 720. Null resets it to the default of 24.

**languages** `[String!]`

The languages the popup offers its copy in, as locale codes such as `fr` or `pt-BR`: ones the builder's language picker lists, or ones already saved on the popup. Replaces the whole list. To add one, send the current list plus the new code; an empty list removes them all, so the popup offers only its authored copy. Translations are written in the builder.

**pageRules** `[\[PopupPageRuleInput!\]](/docs/api-reference/v3/reference/marketing/popup-page-rule-input)`

Which storefront pages show the popup. Replaces the whole list. To add one, send the current rules plus the new one; an empty list removes them all, so the popup shows on every page.

**fields**

**type** `[PopupPageRuleType!](/docs/api-reference/v3/reference/marketing/popup-page-rule-type)` *required*

Whether matching pages show or hide the popup.

**url** `String!` *required*

A full http(s) URL or a path such as `/products/*`, with `*` standing for any text. Not blank, and no spaces.

**renderMode** `[PopupRenderMode](/docs/api-reference/v3/reference/marketing/popup-render-mode)`

TRIGGERED or INLINE. Making a popup INLINE the first time creates its `embedCode`. A BACK\_IN\_STOCK popup can't be INLINE.

**target** `[PopupTarget](/docs/api-reference/v3/reference/marketing/popup-target)`

Which visitors see the popup: the builder's Targeting setting.

**trigger** `[PopupTriggerInput](/docs/api-reference/v3/reference/marketing/popup-trigger-input)`

The popup's one trigger.

**fields**

**delaySeconds** `Int`

For TIME\_ON\_PAGE only: seconds on the page before the popup shows, a whole number greater than 0. Omit to keep the stored delay.

**kind** `[PopupTriggerChoice!](/docs/api-reference/v3/reference/marketing/popup-trigger-choice)` *required*

What shows the popup.

**opensAutomatically** `Boolean`

For BACK\_IN\_STOCK only: whether the popup opens by itself when the shopper selects an out-of-stock variant. Omit to keep the stored value.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.