cosmosdb_item_replace
Update or replace an item in a Cosmos DB container by specifying the container name, item ID, partition key, and updated JSON data. Ensures data accuracy and integrity.
Instructions
Replace an item in a Cosmos DB container
Input Schema
Name | Required | Description | Default |
---|---|---|---|
container_name | Yes | Name of the Cosmos DB container | |
database_name | No | Name of the Cosmos DB database (optional, defaults to 'defaultdb') | |
item | Yes | Updated item data (JSON object) | |
item_id | Yes | ID of the item to replace | |
partition_key | Yes | Partition key value for the item |