# Add/update the specified cart item **PUT /V1/carts/{cartId}/items/{itemId}** Add/update the specified cart item. ## Servers - https://magento2.winkelstraat.mac/rest/all: https://magento2.winkelstraat.mac/rest/all () ## Parameters ### Path parameters - **cartId** (string) - **itemId** (string) ### Body: (object) - **cartItem** (object) Interface CartItemInterface ## Responses ### 200 200 Success. #### Body: (object) - **item_id** (integer) Item ID. Otherwise, null. - **sku** (string) Product SKU. Otherwise, null. - **qty** (number) Product quantity. - **name** (string) Product name. Otherwise, null. - **price** (number) Product price. Otherwise, null. - **product_type** (string) Product type. Otherwise, null. - **quote_id** (string) Quote id. - **product_option** (object) Product option interface - **extension_attributes** (object) ExtensionInterface class for @see \Magento\Quote\Api\Data\CartItemInterface ### 401 401 Unauthorized #### Body: (object) - **message** (string) Error message - **errors** (array[object]) Error details - **code** (integer) Error code - **parameters** (array[object]) Error parameters item - **trace** (string) Stack trace ### 400 400 Bad Request #### Body: (object) - **message** (string) Error message - **errors** (array[object]) Error details - **code** (integer) Error code - **parameters** (array[object]) Error parameters item - **trace** (string) Stack trace ### default Unexpected error #### Body: (object) - **message** (string) Error message - **errors** (array[object]) Error details - **code** (integer) Error code - **parameters** (array[object]) Error parameters item - **trace** (string) Stack trace [Powered by Bump.sh](https://bump.sh)