This commit is contained in:
writinwaters 2025-12-12 11:23:32 +08:00
parent 4abfca7e81
commit d6287ce867

View file

@ -2183,13 +2183,13 @@ Batch update or delete document-level metadata within a specified dataset. If bo
- `"empty"`
- `"not empty"`
- `"value"`: `string` The key value to search by.
- `"updates"`: `list[object]`, *optional* Replaces metadata of the retrieved documents.
Each object: `{ "key": string, "match": string, "value": string }`
- `"updates"`: (*Body parameter*), `list[object]`, *optional*
Replaces metadata of the retrieved documents. Each object: `{ "key": string, "match": string, "value": string }`.
- `"key"`: `string` The name of the key to update.
- `"match"`: `string` *optional* The current value of the key to update. When omitted, the corresponding keys are updated to `"value"` regardless of their current values.
- `"value"`: `string` The new value to set for the specified keys.
- `"deletes`: `list[ojbect]`, *optional* Deletes metadata of the retrieved documents.
Each object: `{ "key": string, "value": string }`
- `"deletes`: (*Body parameter*), `list[ojbect]`, *optional*
Deletes metadata of the retrieved documents. Each object: `{ "key": string, "value": string }`.
- `"key"`: `string` The name of the key to delete.
- `"value"`: `string` *Optional* The value of the key to delete.
- When provided, only keys with a matching value are deleted.