younifyd
Menu

Delete item from a collection

Delete item from a collection

DELETE/v1/collections/{collection_id}/items/{item_id}

Use it in a workflow

  1. Add a step and choose the Constructor connector.
  2. Pick the Delete item from a collection action (under Collections).
  3. Fill in the fields below, then reference the result from later steps as {{deleteItemFromACollection.response.data}}.

Request

Path parameters

collection_idstringrequired
item_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`.

Response

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

idstring

The ID of the item, added to the collection.

sourcestring

Arbitrary identifier of the source of the item manually added to the collection.

variation_idsarray<string>

List of variation IDs to include in this collection for the item. If not provided, all variations of the item are included.

created_atstring (date-time)

Collection Item creation date in ISO 8601 format. Present only for manually added items.

updated_atstring (date-time)

Collection Item update date in ISO 8601 format. Present only for manually added items.

typeany

Describes the method of addition for the item - `manual` if it was manually added to the collection, dynamic if it matches collection's filter expression.

Default "manual"

json
{
  "id": "string",
  "source": "string",
  "variation_ids": [
    "string"
  ],
  "created_at": "2025-01-01T00:00:00Z",
  "updated_at": "2025-01-01T00:00:00Z",
  "type": "manual"
}

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