> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/orders/llms.txt)
> Source: https://docs.saleor.io/api-reference/orders/mutations/order-update-shipping

# orderUpdateShipping Mutation

Updates a shipping method of the order. Requires shipping method ID to update, when null is passed then currently assigned shipping method is removed.

Requires the MANAGE\_ORDERS permission.

```graphql
orderUpdateShipping(
  order: ID!
  input: OrderUpdateShippingInput!
): OrderUpdateShipping
```

Details

```graphql
type OrderUpdateShipping {
  order: Order
  orderErrors: [OrderError!]! @deprecated
  errors: [OrderError!]!
}
```

<a id="arguments"></a>

### Arguments

<a id="order"></a>

#### [`order`](#order) ● [`ID!`](/api-reference/miscellaneous/scalars/id.md)

ID of the order to update a shipping method.

<a id="input"></a>

#### [`input`](#input) ● [`OrderUpdateShippingInput!`](/api-reference/orders/inputs/order-update-shipping-input.md)

Fields required to change shipping method of the order.

<a id="type"></a>

### Type

<a id="orderupdateshipping"></a>

#### [`OrderUpdateShipping`](/api-reference/orders/objects/order-update-shipping.md)

Updates a shipping method of the order. Requires shipping method ID to update, when null is passed then currently assigned shipping method is removed.

Requires the MANAGE\_ORDERS permission.
