--- title: cartSelectedDeliveryOptionsUpdate - Storefront API description: Update the selected delivery options for a delivery group. api_version: 2025-10 api_name: storefront type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/storefront/latest/mutations/cartSelectedDeliveryOptionsUpdate md: https://shopify.dev/docs/api/storefront/latest/mutations/cartSelectedDeliveryOptionsUpdate.md --- # cart​Selected​Delivery​Options​Update mutation Update the selected delivery options for a delivery group. ## Arguments * cart​Id [ID!](https://shopify.dev/docs/api/storefront/latest/scalars/ID) required The ID of the cart. * selected​Delivery​Options [\[Cart​Selected​Delivery​Option​Input!\]!](https://shopify.dev/docs/api/storefront/latest/input-objects/CartSelectedDeliveryOptionInput) required The selected delivery options. The input must not contain more than `250` values. *** ## Cart​Selected​Delivery​Options​Update​Payload returns * cart [Cart](https://shopify.dev/docs/api/storefront/latest/objects/Cart) The updated cart. * user​Errors [\[Cart​User​Error!\]!](https://shopify.dev/docs/api/storefront/latest/objects/CartUserError) non-null The list of errors that occurred from executing the mutation. * warnings [\[Cart​Warning!\]!](https://shopify.dev/docs/api/storefront/latest/objects/CartWarning) non-null A list of warnings that occurred during the mutation. *** ## Examples * ### cartSelectedDeliveryOptionsUpdate reference ## Mutation Reference ```graphql mutation cartSelectedDeliveryOptionsUpdate($cartId: ID!, $selectedDeliveryOptions: [CartSelectedDeliveryOptionInput!]!) { cartSelectedDeliveryOptionsUpdate(cartId: $cartId, selectedDeliveryOptions: $selectedDeliveryOptions) { cart { # Cart fields } userErrors { field message } warnings { # CartWarning fields } } } ``` ## Input ```json { "cartId": "gid://shopify//10079785100", "selectedDeliveryOptions": [ { "deliveryGroupId": "gid://shopify//10079785100", "deliveryOptionHandle": "" } ] } ``` ##### Variables ``` { "cartId": "gid://shopify//10079785100", "selectedDeliveryOptions": [ { "deliveryGroupId": "gid://shopify//10079785100", "deliveryOptionHandle": "" } ] } ``` ##### Schema ``` input CartSelectedDeliveryOptionInput { deliveryGroupId: ID! deliveryOptionHandle: String! } ```