younifyd
Menu

Create or replace item groups

Create or replace item groups

PUT/v2/item_groups

Use it in a workflow

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

Request

Query parameters

cstring

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

forceboolean

A flag to process the catalog even if it will invalidate a large part of existing data. Defaults to `False`.

notification_emailarray<string (email)>

The email address(es) to send a notification to if the task fails. Multiple addresses may be specified for multiple recipients.

Request body

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

item_groupsarray<object>required

Array of item groups you want to create or replace.

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.

parent_idsarray<string>

List of parent item group IDs

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

Response

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

task_idinteger
task_status_pathstring
json
{
  "task_id": 0,
  "task_status_path": "string"
}

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