younifyd
Menu

Create or replace catalog

Create or replace catalog

PUT/v1/catalog

Use it in a workflow

  1. Add a step and choose the Constructor connector.
  2. Pick the Create or replace catalog action (under Catalog).
  3. Fill in the fields below, then reference the result from later steps as {{createOrReplaceCatalog.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.

formatany

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

Default "csv"

modeany

Mode for catalog upload: `full` (default, send complete catalog files) or `ids` (send ID-only files to keep specific records, others will be removed).

Default "full"

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 {{createOrReplaceCatalog.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.

Was this page helpful?