update_item
Update specific attributes of an existing DynamoDB item without replacing the whole item, using SET, REMOVE, ADD, or DELETE operations.
Instructions
Update specific attributes of an item in a DynamoDB table.
Modifies only the specified attributes without replacing the entire item. Supports SET, REMOVE, ADD, and DELETE operations in the update expression. Returns the updated item's attributes.
When to use:
To modify specific attributes of an existing item
To increment counters (SET count = count + :inc)
To add/remove elements from sets
To remove attributes from an item
When NOT to use:
To replace an entire item (use add_item instead)
To update many items at once (iterate with update_item or use bulk operations)
Returns: JSON with the updated item attributes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |