younifyd
Menu

Add Or Update Segment

Create a pricing segment on a search index, or change the currency or label of one that exists

Use it in a workflow

  1. Add a step and choose the Search connector.
  2. Pick the Add Or Update Segment action (under database).
  3. Fill in the fields below, then reference the result from later steps as {{addOrUpdateSegment.response.data}}.

Fields

indexSlugstringrequired

The search index to add the segment to, by slug. Can also be a variable, e.g. {{variables.indexSlug}}.

segmentstringrequired

The segment key. Starts with a letter; letters, numbers and underscores only.

currencystringrequired

A three-letter currency code, like USD. Can also be a variable, e.g. {{variables.currency}}.

labelstring

A name for the segment, shown in the designer.

Examples

Price a store in pounds

Adds a default segment in GBP, and turns pricing on if it was off

json
{
  "indexSlug": "products",
  "segment": "default",
  "currency": "GBP",
  "label": "Default"
}

Need more? See the Search guide for connection setup and behaviour shared by every action.