---
title: "Creates a new restaurant category"
method: POST
path: "/restaurant_categories"
tags: ["RestaurantCategory"]
---

# Creates a new restaurant category

`POST /restaurant_categories`

Creates a new restaurant category

## Request body

- RestaurantCategory
  - `id` integer
  - `created_at` string
  - `updated_at` string
  - `restaurant_id` integer
  - `name` string
  - `slug` string
  - `is_active` integer
  - `image` AddImage
    - `attachment` string — attachment
    - `image_data` string — image_data

## Response `200`

New restaurant category added

- RestaurantCategory
  - `id` integer
  - `created_at` string
  - `updated_at` string
  - `restaurant_id` integer
  - `name` string
  - `slug` string
  - `is_active` integer
  - `image` AddImage
    - `attachment` string — attachment
    - `image_data` string — image_data

## 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/revisions/8db13a44d758/schema)
