Service Categories
PATCH
Update Service Category
Update an existing service category.
Required Permission:
Edit Service Category
PATCH
/dashboard/service-categories/{id}
Request Body
JSONRequest Parameters
| Parameter | Type | Required | Validation | Description |
|---|---|---|---|---|
| name | String | Required | string, max:255, unique | Name of the service category (unique except for this ID) |
| 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 regenerated automatically from the name.
Response
200 OKStatus Code
HTTP status code (200)
Message
Service category successfully updated
Data
Updated service category record