- Auth
- ForgotPassword
- Profile
- Family Members
- Address
- Languages
- Products
- Permissions
- Config
- Appointment Schedule
- Test Tags
- Test Parameters
- Category
- Device
- File
- Appointment
- Reports
- Staff
- Patient
- Notifications
Upload Report
Developing
POST
/api/service/v1/file/upload/report
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 multipart/form-data
family_member_id
string
required
Example:
677bb5bd4291b96cd0623ef2
appointment_id
string
required
Example:
678df9c7a708416b26a67bb1
product_id
string
required
Example:
6793685181770556165f1518
file
file
required
Example:
file:///home/nuc/Pictures/Screenshots/Screenshot from 2025-01-09 19-15-20.png
user_id
string
required
Example:
677bb5bd4291b96cd0623ef2
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/file/upload/report' \
--header 'Accept: application/json' \
--header 'practice-code: DEFAULT' \
--header 'Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3YjJkZmZlNWJmMjdlMzk1NTUzMjE0MyIsImVtYWlsIjoiZGVlcC5tYXJzb25pYUBwbGVuYXJ0ZWNoLmNvbSIsInN1YiI6IjY3YjJkZmZlNWJmMjdlMzk1NTUzMjE0MyIsImlhdCI6MTc0MTc4MjA4NCwiZXhwIjoxNzQ5NTU4MDg0fQ.KAMsweSbJPDxpLijKdjgp3YEFauw8KYLLumCBpqQfAA' \
--form 'family_member_id="677bb5bd4291b96cd0623ef2"' \
--form 'appointment_id="678df9c7a708416b26a67bb1"' \
--form 'product_id="6793685181770556165f1518"' \
--form 'file=@"/home/nuc/Pictures/Screenshots/Screenshot from 2025-01-09 19-15-20.png"' \
--form 'user_id="677bb5bd4291b96cd0623ef2"'
Responses
🟢200Success
application/json
Body
error
boolean
required
status_code
integer
required
message
string
required
data
object
required
report
object
required
Example
{
"error": false,
"status_code": 200,
"message": "",
"data": {
"report": {
"family_member": "677bb5bd4291b96cd0623ef2",
"file": {
"original_name": "Screenshot from 2025-01-09 19-15-20.png",
"file_name": "private/appointments/reports/cfa59a83-d3b5-418c-a708-870e5ecd4a7d_1737714536067_Screenshot_from_2025-01-09_19-15-20.png",
"path": "https://afyahealth.doctodoor.com.s3.us-east-1.amazonaws.com/private/appointments/reports/cfa59a83-d3b5-418c-a708-870e5ecd4a7d_1737714536067_Screenshot_from_2025-01-09_19-15-20.png",
"size": 65277,
"mimeType": "image/png",
"created_at": "2025-01-24T10:28:57.784Z",
"updated_at": "2025-01-24T10:28:57.784Z",
"id": "67936b6973794d576f1e94fd",
"media_url": "https://d3ektmb2e4ajpb.cloudfront.net/private/appointments/reports/cfa59a83-d3b5-418c-a708-870e5ecd4a7d_1737714536067_Screenshot_from_2025-01-09_19-15-20.png"
},
"product": {
"items": [
"6793680981770556165f150d"
],
"test_parameters": [
"6788b0121322454d3e643f64"
],
"sample_requirements": [
"blood"
],
"estimated_report_delivery_time": 0,
"is_deleted": 1,
"title": {
"en": "test 1 ##"
},
"subtitle": {
"en": "Sub ttile"
},
"description": {
"en": "desriptin "
},
"prerequisites": {
"en": "prerquu ui"
},
"type": "package",
"category": "6788c93bd798f459e8c8d7cc",
"price": 420,
"currency": "INR",
"discount_amount": 100,
"discount_type": "flat",
"service_category": "6790d7c19975d85c7b447c53",
"created_at": "2025-01-24T10:15:45.887Z",
"updated_at": "2025-01-24T10:20:27.246Z",
"id": "6793685181770556165f1518"
},
"appointment": {
"slot_timing": {
"date": "2025-01-26T00:00:00.000Z",
"start_time": "09:00",
"end_time": "10:00"
},
"status": "scheduled",
"family_members": [],
"is_deleted": 0,
"items": [
{
"discount_amount": 0,
"title": "tittleee EDITT ##",
"estimated_report_delivery_time": "0",
"package_test_id": "678a438790b9c678ccb6780c",
"total": 420,
"discount_type": "flat",
"final_total": 320,
"id": "678df9c7a708416b26a67bb4"
}
],
"user": "677bb5bd4291b96cd0623ef2",
"payment_mode": "cod",
"technician": "677bb5bd4291b96cd0623ee6",
"address": "678a433390b9c678ccb677f6",
"gender_preference": "male",
"coupon_code": "ABC",
"currency": "AED",
"fee": 10,
"total": 420,
"final_total": 320,
"created_at": "2025-01-20T07:22:47.630Z",
"updated_at": "2025-01-20T07:22:47.630Z",
"id": "678df9c7a708416b26a67bb1"
},
"user": {
"roles": [
"677bb5bd4291b96cd0623e9a"
],
"is_master_admin": 1,
"is_deleted": 0,
"is_active": 1,
"deleted_at": null,
"language_code": "en",
"first_name": "Deep",
"middle_name": "",
"last_name": "Marsonia",
"full_name": "Deep Marsonia",
"email": "deep.marsonia+lt1@plenartech.com",
"created_at": "2025-01-06T10:51:41.468Z",
"updated_at": "2025-01-06T10:51:41.468Z",
"family_members": [],
"id": "677bb5bd4291b96cd0623ef2"
},
"created_at": "2025-01-24T10:28:57.786Z",
"updated_at": "2025-01-24T10:28:57.786Z",
"id": "67936b6973794d576f1e94ff"
}
}
}