younifyd
Menu

Update collection

Update collection

PATCH/v1/collections/{collection_id}

Use it in a workflow

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

Request

Path parameters

collection_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.

idstring

ID of the collection, must be unique.

display_namestring

Name of the collection to be displayed to end users.

filter_expressionany

[Filter expression](/reference/shared-filter-expressions) associated with this collection.

dataobject

Object containing additional data, that should be attached to this collection. The maximum size of data object is limited to 200kb.

discoverableboolean

When true, the collection is discoverable in autocomplete and search.

Default false

matchesarray<object>

A list of terms associated with this collection for matching purposes.

patternstringrequired

A term to associate with this collection for matching purposes.

match_typeany

The type of match to perform.

Default "PHRASE"

start_timestring (date-time)

ISO-8601 string in UTC defining start time when the collection becomes active. Any specified timezone will be omitted.

end_timestring (date-time)

ISO-8601 string in UTC defining start time when the collection becomes inactive. Any specified timezone will be omitted.

overridden_collection_idstring

The ID of the base collection that this collection overrides. An overriding collection temporarily replaces the content of a base collection during a scheduled time window. Only base collections (collections with `overridden_collection_id` set to `null`) can be overridden.

json
{
  "id": "string",
  "display_name": "string",
  "filter_expression": null,
  "data": {},
  "discoverable": false,
  "matches": [
    {
      "pattern": "string",
      "match_type": "PHRASE"
    }
  ],
  "start_time": "2025-01-01T00:00:00Z",
  "end_time": "2025-01-01T00:00:00Z",
  "overridden_collection_id": "string"
}

Response

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

idstring

ID of the collection.

display_namestring

Name of the collection to be displayed to end users.

filter_expressionany

[Filter expression](/reference/shared-filter-expressions) associated with this collection.

dataobject

Object containing additional data, that should be attached to this collection. The maximum size of data object is limited to 200kb.

discoverableboolean

When true, the collection is discoverable in autocomplete and search.

Default false

matchesarray<object>

A list of terms associated with this collection for matching purposes.

patternstringrequired

A term to associate with this collection for matching purposes.

match_typeany

The type of match to perform.

Default "PHRASE"

start_timestring (date-time)

ISO-8601 string in UTC defining start time when the collection becomes active. Any specified timezone will be omitted.

end_timestring (date-time)

ISO-8601 string in UTC defining start time when the collection becomes inactive. Any specified timezone will be omitted.

overridden_collection_idstring

The ID of the base collection that this collection overrides. An overriding collection temporarily replaces the content of a base collection during a scheduled time window. Only base collections (collections with `overridden_collection_id` set to `null`) can be overridden.

created_atstring (date-time)

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

updated_atstring (date-time)

Last collection update date in ISO 8601 format. Present only for manually added collections.

json
{
  "id": "string",
  "display_name": "string",
  "created_at": "2025-01-01T00:00:00Z",
  "filter_expression": null,
  "data": {},
  "discoverable": false,
  "matches": [
    {
      "pattern": "string",
      "match_type": "PHRASE"
    }
  ],
  "start_time": "2025-01-01T00:00:00Z",
  "end_time": "2025-01-01T00:00:00Z",
  "overridden_collection_id": "string",
  "updated_at": "2025-01-01T00:00:00Z"
}

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