younifyd
Menu

Update catalog

Update catalog

PATCH/v1/catalog

Use it in a workflow

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

Request

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

forceboolean

A flag to process the catalog even if it will invalidate a large part of existing data. By default, operations that would invalidate more than 50% of existing data are blocked unless `force=true` is used. Defaults to `False`.

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

patch_deltaboolean

A flag to process updates as partial updates, meaning only provided fields will be updated in database. Fields not included in the upload or which are blank for a particular item will be ignored.

Default false

on_missingany

The strategy used to handle items that exist in the file and do not exist in the index. `IGNORE` silently ignores them and does not add them to the index, `CREATE` creates them, `FAIL` fails the ingestion. Can be set only when `patch_delta` is `true`. Default is `FAIL`.

formatany

File format of the uploaded items and variations files. Can be either `csv` or `jsonl`.

Default "csv"

Request body

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

itemsstring (binary)

File with items in CSV or JSONL format

variationsstring (binary)

File with variations in CSV or JSONL format

item_groupsstring (binary)

File with item groups in CSV or JSONL format

json
{
  "items": "string",
  "variations": "string",
  "item_groups": "string"
}

Response

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

task_idinteger

Task ID for the ingestion job

task_status_pathstring

Path to check the status of the ingestion job

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

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