Services

POST

Create Service

Create a new service.

Required Permission: Create Service
POST /dashboard/services

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 Required 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 generated automatically from the name.

Response

200 OK
Status Code
HTTP status code (200)
Message
Service successfully created
Data
Created service details