fakestore_update_cart
Update cart details including user ID, date, and products in a simulated e-commerce environment for testing and development purposes.
Instructions
Update an existing cart (simulation - does not persist)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | New cart date | |
| id | Yes | Cart ID to update | |
| products | No | New products array | |
| userId | No | New user ID |
Input Schema (JSON Schema)
{
"properties": {
"date": {
"description": "New cart date",
"type": "string"
},
"id": {
"description": "Cart ID to update",
"type": "number"
},
"products": {
"description": "New products array",
"items": {
"properties": {
"productId": {
"description": "Product ID",
"type": "number"
},
"quantity": {
"description": "Product quantity",
"type": "number"
}
},
"required": [
"productId",
"quantity"
],
"type": "object"
},
"type": "array"
},
"userId": {
"description": "New user ID",
"type": "number"
}
},
"required": [
"id"
],
"type": "object"
}