---
title: "Update More Items"
method: POST
path: "/{databaseId}/more-items/"
tags: ["Item Properties"]
---

# Update More Items

`POST /{databaseId}/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*

  ```json
    {
      "filter": "'releaseDate' < now() - 7*24*3600",
      "changes": {"available": false}
    }
  ```

## Path parameters

- `databaseId` string, required

## Request body

- UpdateMoreItemsParameters
  - `filter` string, required — A [ReQL](https://docs.recombee.com/reql) expression, which returns `true` for the items that shall be updated.
  - `changes` object, required — A dictionary where the keys are properties that shall be updated.

## Response `200`

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

- UpdateMoreItemsResponse
  - `count` integer, required — Number of updated items
  - `itemIds` string[], required — IDs of updated items

## Other responses

- `400` — Invalid filter, property name does not match ''^[a-zA-Z0-9_\-:]+$'', value does not match the property type.
- `404` — Property of the given name is not present in the database.

---

[API](https://skmtc.dev/recombee/apis/recombee-api.md) · [All operations](https://skmtc.dev/recombee/apis/recombee-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/recombee/recombee-api/revisions/a9c9c33eb2e8/schema)
