Change a job in the cart
update_cart_lineChanges one cart line's options (only what is given: a new quantity, stock, finish or size) and re-prices it with the pricing engine. A line from a quote Printdash priced cannot be changed. Needs a signed-in Printdash account: called without one, the connection asks the customer to sign in on printdash.io.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"line_id": "<line_id>",
"configuration": "<configuration>"
},
"name": "update_cart_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line_id | Yes | A line_id from get_cart. | |
| configuration | Yes | Only the options that change, as option ids: a new quantity, stock, finishing ids or size. Finishing ids replace the line's finishing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart | No | ||
| next | Yes | ||
| added | No | ||
| price | No | ||
| errors | No | ||
| priced | No | ||
| reason | No | ||
| line_id | No | ||
| missing | No | ||
| nearest | No | ||
| product | Yes | ||
| updated | No | ||
| currency | Yes | ||
| product_id | Yes | ||
| turnaround | No | ||
| service_area | Yes | ||
| prices_include_gst | Yes | ||
| configuration_input | No |