Replace one item in a Caliper dataset
caliper_datasets_update_itemRewrites one item's content, keeping its id (ratings and eval results keyed to it stay attached). The item's KIND can't change — a Q&A item stays Q&A, a sequence stays a sequence — so pass the same shape you read from caliper_datasets_get. Chat and raw items can't be edited from here. May return needs_confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | The full replacement item, same three shapes as caliper_datasets_create. | |
| itemId | Yes | Item id, from caliper_datasets_get. | |
| datasetId | Yes | Dataset id. | |
| workspace | No | Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys. | |
| approvalId | No | Approval id from a prior needs_confirmation response. Omit on the first call. |