---
title: "Update restaurant addon by its id"
method: PUT
path: "/restaurant_addons/{restaurantAddonId}"
tags: ["RestaurantAddon"]
---

# Update restaurant addon by its id

`PUT /restaurant_addons/{restaurantAddonId}`

Update restaurant addon by its id

## Path parameters

- `restaurantAddonId` integer, required

## Request body

- UpdateRestaurantAddon
  - `restaurant_id` integer
  - `restaurant_category_id` integer
  - `name` string
  - `is_active` integer
  - `restaurant_addon_item` UpdateRestaurantAddonItem[]
    - `id` integer
    - `name` string

## Response `200`

Restaurant Addon updated

- RestaurantAddon
  - `id` integer
  - `created_at` string
  - `updated_at` string
  - `restaurant_id` integer
  - `restaurant_category_id` integer
  - `name` string
  - `is_active` integer

## Other responses

- `default` — Unexpected error

---

[API](https://skmtc.net/agriya/apis/ofos-api-endpoints.md) · [All operations](https://skmtc.net/agriya/apis/ofos-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agriya/ofos-api-endpoints/versions/8db13a44d758/schema)
