Item Properties

Update More Items

Updates (some) property values of all the items that pass the filter.

Example: Setting all the items that are older than a week as unavailable

  {
    "filter": "'releaseDate' < now() - 7*24*3600",
    "changes": {"available": false}
  }
post/{databaseId}/more-items/

Request

  • Base URL
    http://Based on the region of your database (see https://docs.recombee.com/regions).
  • URL
    http://Based on the region of your database (see https://docs.recombee.com/regions)./{databaseId}/more-items/
  • Auth
    none declared

Path parameters

databaseIdstring required

ID of your database.

Request body

filterstring required

A ReQL expression, which returns true for the items that shall be updated.

changesobject required

A dictionary where the keys are properties that shall be updated.

Response

Successful operation. Returns IDs of updated items and their count.

countinteger required

Number of updated items

itemIdsstring[] required

IDs of updated items

Changes

No recorded changes to this operation across all 3 revisions of this API.