Create Service
POST/api/services
Create Service
Request
Header Parameters
X-Company-Slug stringrequired
- application/json
Body
name stringrequired
description string
price float
original_price float
estimated_time integer
category_id stringrequired
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
Schema
id string
name string
slug string
description stringnullable
price float
original_price floatnullable
estimated_time integer
category_id string
created_at date-time
updated_at date-time
{
"id": "1",
"name": "denem",
"slug": "denem",
"description": "afa",
"price": 2200,
"original_price": 2100,
"estimated_time": 15,
"category_id": "5",
"created_at": "2024-06-16T23:09:57.899+03:00",
"updated_at": "2024-06-16T23:09:57.899+03:00"
}
Loading...