---
title: "Update a configuration"
description: "Use PUT /configs/{config} to update one configuration by its numeric identifier."
canonical: https://docs.ordering.co/api-reference/guides/update-config/
---

# Update a configuration

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

Use `PUT /configs/{config}` to update one configuration by its numeric identifier. The current public operation is `Config.update`.

The final path parameter is `{config}` and identifies the configuration. Older integrations may refer to this identifier as `config_id`.

The route is restricted to server or administrator access. Send only fields that need to change. `key`, `value`, `type`, `options`, and `image` follow type-specific validation; image-backed type `5` can store the processed image result as `value`.

Protected or confidential configuration behavior is enforced by the controller. Do not include real provider credentials or protected values in request examples, logs, documentation, or client-side code.

## Legacy SDK example

```javascript
const response = await ordering.configs(configId).save(changes)
```

This SDK helper is legacy syntax; confirm that your package and version support it before use.

## OpenAPI reference

**Operation:** `PUT /configs/{config}`

**Path parameters**

| Name     | Type    | Required | Description |
| -------- | ------- | -------- | ----------- |
| `config` | integer | Yes      | —           |

**Header parameters**

| Name         | Type   | Required | Description |
| ------------ | ------ | -------- | ----------- |
| `User-Agent` | string | No       | —           |

**Request body fields**

| Name      | Type    | Required |
| --------- | ------- | -------- |
| `image`   | any     | No       |
| `key`     | any     | No       |
| `options` | string  | No       |
| `type`    | integer | No       |
| `value`   | any     | No       |

**Responses**

| Code | Description                           |
| ---- | ------------------------------------- |
| 200  | OK (Envelope)                         |
| 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/configs/PUT/configs/{config})
