Service Categories
POST
Create Service Category
Create a new service category.
Required Permission:
Create Service Category
POST
/dashboard/service-categories
Request Body
JSONRequest Parameters
| Parameter | Type | Required | Validation | Description |
|---|---|---|---|---|
| name | String | Required | string, max:255, unique | Name of the service category (must be unique) |
| position | integer | Optional | integer | The position/order of the service category. |
| icon | String | Optional | string, max:255 | Icon class or identifier |
| description | String | Required | string | Detailed description |
| seo | Array | Optional | array | SEO meta title |
| seo.meta_title | String | Optional | string, max: 255 | SEO meta title |
| seo.meta_description | String | Optional | string, max: 255 | SEO meta description |
| seo.meta_keywords | String | Optional | string, max: 255 | SEO meta keywords |
Important Notes:
- The category name must be unique.
- The slug will be generated automatically from the name.
Response
200 OKStatus Code
HTTP status code (200)
Message
Service category successfully created
Data
Created service category record