younifyd
Menu

Create or replace item groups (Deprecated)

Create or replace item groups (Deprecated)

PUT/v1/item_groups

Use it in a workflow

  1. Add a step and choose the Constructor connector.
  2. Pick the Create or replace item groups (Deprecated) action (under Item Groups).
  3. Fill in the fields below, then reference the result from later steps as {{createOrReplaceItemGroupsDeprecated.response.data}}.

Request

Query parameters

sectionstring

The section of the index to use. Defaults to `Products`.

cstring

The ID of the client and version that the request is coming from, such as `cio-js-2.90`.

Request body

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

item_groupsarray<object>required
dataobject

Object containing additional data, that should be attached to this item group. The maximum size of data object is limited to 5kb. The average size of data objects for all ingested item groups should not exceed 1kb.

idstringrequired

ID of the item group.

namestringrequired

Item group display name.

childrenarray<object>

A list of item groups categorized under the current item group.

json
{
  "item_groups": [
    {
      "id": "string",
      "name": "string",
      "data": {},
      "children": [
        {}
      ]
    }
  ]
}

Response

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

item_groupsobject
processedintegerrequired

Number of item groups processed.

insertedintegerrequired

Number of item groups inserted.

updatedintegerrequired

Number of item groups updated.

deletedintegerrequired

Number of item groups deleted.

json
{
  "item_groups": {
    "processed": 0,
    "inserted": 0,
    "updated": 0,
    "deleted": 0
  }
}

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