Skip to main content
POST
Create new category (admin only)

Authorizations

Authorization
string
header
required

JWT access token from /auth/verify-otp

Body

application/json
name
string
required
slug
string
required
base_price
number
required
description
string
vehicle_type
enum<string>
Available options:
two_wheeler,
four_wheeler,
commercial
is_active
boolean
sort_order
integer

Response

Category created

id
string<uuid>
name
string
description
string | null
base_price
number
is_active
boolean
created_at
string<date-time>
vehicle_type
enum<string>
Available options:
two_wheeler,
three_wheeler,
four_wheeler,
commercial
sort_order
integer