directus / directus/docs

Add update items by query examples

Open
#309 1 comment 2 reactions 0 assignees View on GitHub
Docs
Dominant language
TypeScript
Stars
22
Forks
82
Avg merge
18h 49m
Merged PRs (30d)
4

Description

### Page

https://docs.directus.io/reference/items.html#update-multiple-items

### Describe the Inaccuracy

As follow up to https://github.com/directus/directus/pull/20774 i think we should include examples for how to do updating by query. Currently we only have examples for updating by ID and that this is possible is only mentioned once in the request body description.

It might also be worth to mention that in this specific scenario we're dealing with 2 separate queries in the request:
- in the request body to define *which items should be updated*
- in the request parameters to define *what data should be returned* from the API

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.