- Auth
- ForgotPassword
- Profile
- Family Members
- Address
- Languages
- Products
- Permissions
- Config
- Appointment Schedule
- Test Tags
- Test Parameters
- Category
- Device
- File
- Appointment
- Reports
- Staff
- Patient
- Notifications
Create Test Tag
Developing
POST
/api/service/v1/test-tags
Request
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
title
object
required
en
string
required
ar
string
required
service_category
string
required
Example
{
"title" : {
"en" : "en title edit",
"ar" : "ar title edit"
},
"service_category" : "6788c918d798f459e8c8d7c5"
}
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 POST 'https://afyahealth.doctodoor.com:5600/api/service/v1/test-tags' \
--header 'Accept: application/json' \
--header 'practice-code: DEFAULT' \
--header 'Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3YjJkZmZlNWJmMjdlMzk1NTUzMjE0MyIsImVtYWlsIjoiZGVlcC5tYXJzb25pYUBwbGVuYXJ0ZWNoLmNvbSIsInN1YiI6IjY3YjJkZmZlNWJmMjdlMzk1NTUzMjE0MyIsImlhdCI6MTc0MTc4MjA4NCwiZXhwIjoxNzQ5NTU4MDg0fQ.KAMsweSbJPDxpLijKdjgp3YEFauw8KYLLumCBpqQfAA' \
--header 'Content-Type: application/json' \
--data-raw '{
"title" : {
"en" : "en title edit",
"ar" : "ar title edit"
},
"service_category" : "6788c918d798f459e8c8d7c5"
}'
Responses
🟢200Success
application/json
Body
error
boolean
required
status_code
integer
required
message
string
required
data
object
required
is_deleted
integer
required
title
object
required
service_category
object
required
created_at
string
required
updated_at
string
required
id
string
required
Examples
{
"error": false,
"status_code": 200,
"message": "Tag created successfully.",
"data": {
"is_deleted": 0,
"title": {
"en": "en title edit",
"ar": "ar title edit"
},
"service_category": {
"parent": null,
"is_deleted": 0,
"title": {
"en": "english title editred",
"ar": "ar title"
},
"type": "service",
"color": "#FF7689",
"created_at": "2025-01-16T08:53:44.021Z",
"updated_at": "2025-01-16T08:53:44.021Z",
"id": "6788c918d798f459e8c8d7c5"
},
"created_at": "2025-01-29T06:47:23.247Z",
"updated_at": "2025-01-29T06:47:23.247Z",
"id": "6799cefb696ce32781cbce71"
}
}