younifyd
Menu

Create Slot Configuration

Create a slot configuration

POST/rest/organizations/{organizationId}/commerce/v2/recommendations/slots

Use it in a workflow

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

Request

Path parameters

organizationIdstringrequired

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

Request body

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

createdAtinteger (int64)

When the [slot configuration](https://docs.coveo.com/en/o9b80563/glossary/recommendation-slot/) was created.

headlinesarray<object>required

Localized recommendation headlines.

headlinestringrequired

Localized recommendation headlines.

languagestringrequired
idstring (uuid)

The unique identifier of the [slot configuration](https://docs.coveo.com/en/o9b80563/glossary/recommendation-slot/).

minRecsinteger (int32)required

Products to be returned.

Default 1

namestringrequired

A unique name for the [slot configuration](https://docs.coveo.com/en/o9b80563/glossary/recommendation-slot/).

queryConfigurationobject

Query configuration.

additionalFieldsarray<string>required

To retrieve [additional fields](https://docs.coveo.com/en/n73f0502#create-additional-commerce-fields) you have created, that aren’t part of the [standard commerce fields](https://docs.coveo.com/en/n73f0502#standard-commerce-fields), specify them here. These fields appear in the `additionalFields` object in the response.

perPageinteger (int32)

The number of results to include per page.<br/><br/><b>Note:</b> The specified value applies only to parent items, not their grouped children. Query performance may be affected when returned items include many grouped products.

seedstring

The seed number for the [slot configuration](https://docs.coveo.com/en/o9b80563/glossary/recommendation-slot/). One of: unseeded, single, multi.

One ofunseededsinglemulti

seedTypestringrequired

The primary [seed product](https://docs.coveo.com/en/n5jg0219/glossary/seed-product) type used by recommendations strategies on this [slot configuration](https://docs.coveo.com/en/o9b80563/glossary/recommendation-slot/). One of: product, cart or purchased.

One ofunseededproductcartpurchased

slotTypestringrequired

A slot type label that identifies the location of a slot.

One ofcartconfirmationglobalhomelistingproductDetailsearch

strategystringrequired

The [strategy](https://docs.coveo.com/en/3132/glossary/product-recommendations) to use for recommendations.

One ofbought_togetherpopular_boughtpopular_viewedviewed_together

trackingIdstringrequired

The unique identifier of the tracking target.

json
{
  "headlines": [
    {
      "headline": "You might be interested in",
      "language": "en"
    }
  ],
  "minRecs": 1,
  "name": "Homepage Primary.",
  "seedType": "product",
  "slotType": "home",
  "strategy": "popular_bought",
  "trackingId": "acmecorporation_ca",
  "createdAt": 0,
  "id": "755e2dd8-3a8f-19fb-b9ed-ed89c4f83c3b",
  "queryConfiguration": {
    "additionalFields": [
      "color",
      "shirtsize"
    ],
    "perPage": 20
  },
  "seed": "unseeded"
}

Response

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

createdAtinteger (int64)

When the [slot configuration](https://docs.coveo.com/en/o9b80563/glossary/recommendation-slot/) was created.

headlinesarray<object>

Localized recommendation headlines.

headlinestringrequired

Localized recommendation headlines.

languagestringrequired
idstring (uuid)

The unique identifier of the [slot configuration](https://docs.coveo.com/en/o9b80563/glossary/recommendation-slot/).

minRecsinteger (int32)

Products to be returned.

Default 1

namestring

A unique name for the [slot configuration](https://docs.coveo.com/en/o9b80563/glossary/recommendation-slot/).

queryConfigurationobject

Query configuration.

additionalFieldsarray<string>required

To retrieve [additional fields](https://docs.coveo.com/en/n73f0502#create-additional-commerce-fields) you have created, that aren’t part of the [standard commerce fields](https://docs.coveo.com/en/n73f0502#standard-commerce-fields), specify them here. These fields appear in the `additionalFields` object in the response.

perPageinteger (int32)

The number of results to include per page.<br/><br/><b>Note:</b> The specified value applies only to parent items, not their grouped children. Query performance may be affected when returned items include many grouped products.

seedstring

The seed number for the [slot configuration](https://docs.coveo.com/en/o9b80563/glossary/recommendation-slot/). One of: unseeded, single, multi.

One ofunseededsinglemulti

seedTypestring

The primary [seed product](https://docs.coveo.com/en/n5jg0219/glossary/seed-product) type used by recommendations strategies on this [slot configuration](https://docs.coveo.com/en/o9b80563/glossary/recommendation-slot/). One of: product, cart or purchased.

One ofunseededproductcartpurchased

slotTypestring

A slot type label that identifies the location of a slot.

One ofcartconfirmationglobalhomelistingproductDetailsearch

strategystring

The [strategy](https://docs.coveo.com/en/3132/glossary/product-recommendations) to use for recommendations.

One ofbought_togetherpopular_boughtpopular_viewedviewed_together

trackingIdstring

The unique identifier of the tracking target.

json
{
  "headlines": [
    {
      "headline": "You might be interested in",
      "language": "en"
    }
  ],
  "minRecs": 1,
  "name": "Homepage Primary.",
  "seedType": "product",
  "slotType": "home",
  "strategy": "popular_bought",
  "trackingId": "acmecorporation_ca",
  "createdAt": 0,
  "id": "755e2dd8-3a8f-19fb-b9ed-ed89c4f83c3b",
  "queryConfiguration": {
    "additionalFields": [
      "color",
      "shirtsize"
    ],
    "perPage": 20
  },
  "seed": "unseeded"
}

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

Was this page helpful?
Create Slot Configuration — Coveo — Documentation