Services

PATCH

Update Service

Update an existing service.

Required Permission: Edit Service
PATCH /dashboard/services/{id}

Request Body

JSON

    

Request Parameters

Parameter Type Required Validation Description
service_category_id Integer Required integer, exists ID of the service category
name String Required string, max: 255, unique Name of the service (must be unique)
position integer Optional integer The position/order of the service.
banner_image File Optional image, max: 2048 Banner image file
short_description String Required string Short description
long_description String Required string Detailed long description

Important Notes:

  • The service name must be unique.
  • The slug will be regenerated automatically from the name.

Response

200 OK
Status Code
HTTP status code (200)
Message
Service successfully updated
Data
Updated service details