younifyd
Menu

Update

Update Context Mapping

PUT/rest/organizations/{organizationId}/commerce/v2/tracking-ids/{trackingId}/context-mappings/{key}

Use it in a workflow

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

Request

Path parameters

organizationIdstringrequired

The unique identifier of the target [organization](https://docs.coveo.com/en/185/).<br />**Example:** `acmecorporation8tp8wu3`

trackingIdstringrequired

The unique identifier of the tracking target.

keystringrequired

The context mapping key

Request body

Enter the body as JSON in the step's Body field.

destinationsarray<object>required

The list of destinations where this context mapping should be applied.

attributestringrequired

The destination type where context mapping values can be applied

One ofQUERY_PIPELINE_CONTEXTML_CONTEXTFIELD_ALIASES

fieldAliasstring

The field alias template used when attribute is FIELD_ALIASES. Must resolve to a field name pattern.

fieldSourcestring

The field source template used when attribute is FIELD_ALIASES. Must resolve to 'field.subkey' pattern.

keystringrequired

A unique key for the context mapping. Must start with a letter and contain only letters, numbers, and underscores.

typestringrequired

The data type for context mapping values

One ofBOOLEANSTRINGNUMBERPRODUCT_LIST

json
{
  "destinations": [
    {
      "attribute": "QUERY_PIPELINE_CONTEXT"
    },
    {
      "attribute": "FIELD_ALIASES"
    }
  ],
  "key": "user_segment",
  "type": "STRING"
}

Response

Returns 200 with an object. Read it in later steps with {{update.response.data.<field>}}.

destinationsarray<object>

The list of destinations where this context mapping should be applied.

attributestringrequired

The destination type where context mapping values can be applied

One ofQUERY_PIPELINE_CONTEXTML_CONTEXTFIELD_ALIASES

fieldAliasstring

The field alias template used when attribute is FIELD_ALIASES. Must resolve to a field name pattern.

fieldSourcestring

The field source template used when attribute is FIELD_ALIASES. Must resolve to 'field.subkey' pattern.

keystring

A unique key for the context mapping. Must start with a letter and contain only letters, numbers, and underscores.

typestring

The data type for context mapping values

One ofBOOLEANSTRINGNUMBERPRODUCT_LIST

json
{
  "destinations": [
    {
      "attribute": "QUERY_PIPELINE_CONTEXT"
    },
    {
      "attribute": "FIELD_ALIASES"
    }
  ],
  "key": "user_segment",
  "type": "STRING"
}

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

Was this page helpful?
Update — Coveo — Documentation