---
title: "Update Order Options"
description: "Use PUT /order_options to update the caller's checkout choices. The current public operation is OrderOption.update.put."
canonical: https://docs.ordering.co/api-reference/guides/update-order-options/
---

# Update Order Options

> **API operation:** [Open the endpoint in Scalar](https://docs.ordering.co/api-reference/#tag/order_options/PUT/order_options)

Use `PUT /order_options` to update the caller's checkout choices. The current public operation is `OrderOption.update.put`.

This operation requires authentication. Current fields include `address_id`, order `type`, Unix-timestamp `moment`, and `city_id`; the selected address must belong to the target user. Administrators and agents can act for another user, while ordinary callers are limited to themselves.

Cart placement reads the user's current order options. See [Place an order from a cart](https://docs.ordering.co/api-reference/guides/placer-order-with-cart/) for how these options are used.

## OpenAPI reference

**Operation:** `PUT /order_options`

**Header parameters**

| Name            | Type   | Required | Description |
| --------------- | ------ | -------- | ----------- |
| `X-SOCKET-ID-X` | string | No       | —           |

**Request body fields**

| Name           | Type            | Required |
| -------------- | --------------- | -------- |
| `address_id`   | integer         | No       |
| `city_id`      | integer \| null | No       |
| `franchise_id` | any             | No       |
| `moment`       | string \| null  | No       |
| `type`         | integer         | No       |
| `user_id`      | any             | No       |

**Responses**

| Code | Description                           |
| ---- | ------------------------------------- |
| 200  | OK                                    |
| 400  | Bad Request (ErrorResponse)           |
| 401  | Unauthorized                          |
| 404  | Not Found                             |
| 429  | Too Many Requests (ErrorResponse)     |
| 500  | Internal Server Error (ErrorResponse) |
| 503  | Service Unavailable (ErrorResponse)   |

[Open this operation in the API reference](https://docs.ordering.co/api-reference/#tag/order_options/PUT/order_options)
