# updateOrder

> Required permission: RestaurantWrite

Source: https://docs.gastrogate.io/docs/api/mutations/updateOrder

```graphql
updateOrder(
  restaurantId: ID!
  orderId: ID!
  attributes: [AttributeInput!]!
): Order
```

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `restaurantId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `orderId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `attributes` | \[[`AttributeInput`](https://docs.gastrogate.io/docs/api/types/AttributeInput.md)!\]! |  |

## Returns

[`Order`](https://docs.gastrogate.io/docs/api/types/Order.md)

## Example

```graphql
mutation UpdateOrder($restaurantId: ID!, $orderId: ID!, $attributes: [AttributeInput!]!) {
  updateOrder(restaurantId: $restaurantId, orderId: $orderId, attributes: $attributes) {
    id
    estimatedDeliveryTime
    grossAmount
    needsKitchenPrint
    deliveryHeroLongCode
    deliveryTime
  }
}
```

```bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { updateOrder(...) { __typename } }"}'
```
