younifyd
Menu

Update items

Update items

PATCH/v2/items

Use it in a workflow

  1. Add a step and choose the Constructor connector.
  2. Pick the Update items action (under Items).
  3. Fill in the fields below, then reference the result from later steps as {{updateItems.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. Defaults to `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.

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

Default "FAIL"

Request body

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

itemsarray<object>required

Array of items you want to update.

idstringrequired

The ID of the item, must be unique.

namestring

The name of the item, as it will appear in the results. Must contain at least one alphanumeric character.

suggested_scoreinteger

A number that will influence the item's initial ranking relative to other item scores (the higher the score, the higher in the list of suggestions the item will appear).

dataany

Object containing additional data, that should be attached to this item. The maximum size of data object is limited to 200kb. The average size of data objects for all ingested items and variations should not exceed 30kb.

json
{
  "items": [
    {
      "id": "string",
      "name": "string",
      "suggested_score": 0,
      "data": null
    }
  ]
}

Response

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

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

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