- Auth
- ForgotPassword
- Profile
- Family Members
- Address
- Languages
- Products
- Permissions
- Config
- Appointment Schedule
- Test Tags
- Test Parameters
- Category
- Device
- File
- Appointment
- Reports
- Staff
- Patient
- Notifications
Delete Category
Developing
DELETE
/api/service/v1/categories/{id}
Request
Path Params
id
string
required
Header Params
Accept
string
optional
Example:
application/json
Content-Type
string
optional
Example:
application/json
practice-code
string
optional
Example:
DEFAULT
Authorization
string
optional
Example:
{{token}}
Body Params application/json
object {0}
Example
{}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request DELETE 'https://afyahealth.doctodoor.com:5600/api/service/v1/categories/' \
--header 'Accept: application/json' \
--header 'practice-code: DEFAULT' \
--header 'Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3YjJkZmZlNWJmMjdlMzk1NTUzMjE0MyIsImVtYWlsIjoiZGVlcC5tYXJzb25pYUBwbGVuYXJ0ZWNoLmNvbSIsInN1YiI6IjY3YjJkZmZlNWJmMjdlMzk1NTUzMjE0MyIsImlhdCI6MTc0MTc4MjA4NCwiZXhwIjoxNzQ5NTU4MDg0fQ.KAMsweSbJPDxpLijKdjgp3YEFauw8KYLLumCBpqQfAA' \
--header 'Content-Type: application/json' \
--data-raw '{}'
Responses
🟢200Success
application/json
Body
error
boolean
required
status_code
integer
required
message
string
required
data
object
required
parent
object
required
is_deleted
integer
required
title
object
required
type
string
required
color
string
required
image
object
required
created_at
string
required
updated_at
string
required
id
string
required
Examples
{
"error": false,
"status_code": 200,
"message": "Category deleted successfully.",
"data": {
"parent": {
"parent": null,
"is_deleted": 0,
"title": {
"en": "this is title2",
"ar": "arabic title2"
},
"type": "service",
"color": "#FFAAEE",
"created_at": "2025-01-22T11:34:25.801Z",
"updated_at": "2025-01-22T11:34:25.801Z",
"id": "6790d7c19975d85c7b447c53"
},
"is_deleted": 1,
"title": {
"en": "english title editred",
"ar": "ar title"
},
"type": "service",
"color": "#FF7689",
"image": {
"original_name": "Screenshot from 2025-01-27 12-28-57.png",
"file_name": "c1db738b-8e3c-4af2-ad43-297cceea1740_1737970715849_Screenshot_from_2025-01-27_12-28-57.png",
"path": "https://afyahealth.doctodoor.com.s3.us-east-1.amazonaws.com/c1db738b-8e3c-4af2-ad43-297cceea1740_1737970715849_Screenshot_from_2025-01-27_12-28-57.png",
"size": 3002,
"mimeType": "image/png",
"created_at": "2025-01-27T09:38:37.457Z",
"updated_at": "2025-01-27T09:38:37.457Z",
"id": "6797541deb8b1053d7d780c1",
"media_url": "https://d3ektmb2e4ajpb.cloudfront.net/c1db738b-8e3c-4af2-ad43-297cceea1740_1737970715849_Screenshot_from_2025-01-27_12-28-57.png"
},
"created_at": "2025-01-27T09:57:25.226Z",
"updated_at": "2025-01-27T10:06:42.890Z",
"id": "67975885eb8b1053d7d780e2"
}
}