younifyd
Menu

Retrieve item groups

Retrieve item groups

GET/v2/item_groups

Use it in a workflow

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

Request

Query parameters

idarray<string>

Array of item group ID(s) to filter by.

num_results_per_pageinteger

The number of results per page to return.

Default 20

pageinteger

The page of results to return.

offsetinteger

The number of results to skip from the beginning. Cannot be used together with `page`.

cstring

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

Response

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

item_groupsarray<object>
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

The ID of the item group

namestringrequired

Item group display name.

parent_idsarray<string>

List of parent item group IDs

total_countinteger

Total number of item groups.

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

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