> For the complete documentation index, see [llms.txt](https://developer.firmhouse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.firmhouse.com/graphql-api/api-reference/mutations/update-order-line.md).

# updateOrderLine

Updates an order line. Allows changing the quantity and product.

### Arguments

| Argument                                                                                                                      | Description                    |
| ----------------------------------------------------------------------------------------------------------------------------- | ------------------------------ |
| input ([UpdateOrderLineInput](https://developer.firmhouse.com/graphql-api/api-reference/objects/update-order-line-input.md)!) | Parameters for UpdateOrderLine |

### UpdateOrderLineInput Arguments

| Argument                                                                                   | Description                                   |
| ------------------------------------------------------------------------------------------ | --------------------------------------------- |
| id ([ID](https://developer.firmhouse.com/graphql-api/api-reference/objects/id.md)!)        | ID of the order line to update.               |
| quantity ([Int](https://developer.firmhouse.com/graphql-api/api-reference/objects/int.md)) | The quantity of products for this order line. |
| productId ([ID](https://developer.firmhouse.com/graphql-api/api-reference/objects/id.md))  | The ID of the product for this order line.    |

### Return fields

#### errors (\[[ModelValidationError](https://developer.firmhouse.com/graphql-api/api-reference/objects/model-validation-error.md)!]!)

#### orderLine ([OrderLine](https://developer.firmhouse.com/graphql-api/api-reference/objects/order-line.md))
