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/

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