younifyd
Menu

Create or update item group (Deprecated)

Create or update item group (Deprecated)

PUT/v1/item_groups/{group_id}

Use it in a workflow

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

Request

Path parameters

group_idstringrequired

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.

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.

namestring

Item group display name.

parent_idstring

Parent item group ID or null for root item groups.

json
{
  "data": {},
  "name": "string",
  "parent_id": "string"
}

Response

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

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.

idstring

ID of the item group.

namestring

Item group display name.

parent_idstring

Parent item group ID or null for root item groups.

path_listarray<string>

A list of item group IDs in the hierarchy.

pathstring

Path to a item group IDs in the hierarchy (forward slash-separated).

json
{
  "id": "string",
  "name": "string",
  "path_list": [
    "string"
  ],
  "path": "string",
  "data": {},
  "parent_id": "string"
}

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