---
title: "Update Extra Metafield"
description: "Use PUT /business/{business_id}/extras/{extra_id}/metafields/{metafield_id} to update a metafield on an extra."
canonical: https://docs.ordering.co/api-reference/guides/edit-extra-option-metafield/
---

# Update Extra Metafield

> **API operation:** [Open the endpoint in Scalar](https://docs.ordering.co/api-reference/#tag/business/PUT/business/{business_id}/extras/{extra_id}/metafields/{metafield_id})

Use `PUT /business/{business_id}/extras/{extra_id}/metafields/{metafield_id}` to update a metafield on an extra. The operation documented here is `ExtraMetafield.update`.

The path has no `options/{option_id}` segment, so this operation updates a metafield on the extra itself.

The documented schema requires administrator or business-manager authentication and scopes manager updates through business ownership. See [Extra attributes (Metafields)](https://docs.ordering.co/api-reference/guides/extra-attributes/) for shared concepts.

## OpenAPI reference

**Operation:** `PUT /business/{business_id}/extras/{extra_id}/metafields/{metafield_id}`

**Path parameters**

| Name           | Type    | Required | Description |
| -------------- | ------- | -------- | ----------- |
| `business_id`  | integer | Yes      | —           |
| `extra_id`     | integer | Yes      | —           |
| `metafield_id` | integer | Yes      | —           |

**Request body fields**

| Name         | Type    | Required |
| ------------ | ------- | -------- |
| `key`        | string  | No       |
| `model`      | any     | Yes      |
| `object_id`  | integer | No       |
| `value`      | any     | No       |
| `value_type` | string  | 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/business/PUT/business/{business_id}/extras/{extra_id}/metafields/{metafield_id})
