- Auth
- ForgotPassword
- Profile
- Family Members
- Address
- Languages
- Products
- Permissions
- Config
- Appointment Schedule
- Test Tags
- Test Parameters
- Category
- Device
- File
- Appointment
- Reports
- Staff
- Patient
- Notifications
Update Report File
Developing
PUT
/api/service/v1/file/report/{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 multipart/form-data
file
file
optional
Example:
file:///var/www/d2d-laravel/httpdocs/public/images/ai-charts-images/5.png
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 PUT 'https://afyahealth.doctodoor.com:5600/api/service/v1/file/report/' \
--header 'Accept: application/json' \
--header 'practice-code: DEFAULT' \
--header 'Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3YjJkZmZlNWJmMjdlMzk1NTUzMjE0MyIsImVtYWlsIjoiZGVlcC5tYXJzb25pYUBwbGVuYXJ0ZWNoLmNvbSIsInN1YiI6IjY3YjJkZmZlNWJmMjdlMzk1NTUzMjE0MyIsImlhdCI6MTc0MTc4MjA4NCwiZXhwIjoxNzQ5NTU4MDg0fQ.KAMsweSbJPDxpLijKdjgp3YEFauw8KYLLumCBpqQfAA' \
--form 'file=@"/var/www/d2d-laravel/httpdocs/public/images/ai-charts-images/5.png"'
Responses
🟢200Success
application/json
Body
error
boolean
required
status_code
integer
required
message
string
required
data
object
required
is_deleted
integer
required
file
null
required
family_member
string
required
product
object
required
appointment
string
required
user
object
required
created_at
string
required
updated_at
string
required
id
string
required
Example
{
"error": false,
"status_code": 200,
"message": "",
"data": {
"is_deleted": 0,
"file": null,
"family_member": "677bb5bd4291b96cd0623ef2",
"product": {
"items": [],
"test_parameters": [
{
"tags": [
{
"is_deleted": 0,
"title": {
"en": "Haemoglobin",
"ar": ""
},
"service_category": "67b449d2e1c5fa73ee81b9fb",
"created_at": "2025-02-18T08:51:06.522Z",
"updated_at": "2025-02-18T08:51:06.522Z",
"id": "67b449fae1c5fa73ee81ba52"
}
],
"is_deleted": 0,
"title": {
"en": "Blood Related Test",
"ar": ""
},
"description": {
"en": "This includes Blood Test",
"ar": ""
},
"service_category": "67b449d2e1c5fa73ee81b9fb",
"created_at": "2025-02-18T08:52:15.123Z",
"updated_at": "2025-02-18T08:52:15.123Z",
"id": "67b44a3fe1c5fa73ee81bae8"
}
],
"sample_requirements": [
"blood"
],
"estimated_report_delivery_time": 0,
"is_deleted": 0,
"title": {
"en": "Hemoglobin Test",
"ar": ""
},
"subtitle": {
"en": "Full Hemoglobin Test",
"ar": ""
},
"description": {
"en": "Full Hemoglobin Test",
"ar": ""
},
"prerequisites": {
"en": "None",
"ar": ""
},
"type": "test",
"price": 500,
"currency": "SAR",
"discount_amount": 10,
"discount_type": "percentage",
"service_category": {
"parent": null,
"fee_amount": 10,
"fee_type": "percentage",
"fee_currency": "SAR",
"is_deleted": 0,
"title": {
"en": "Blood Services",
"ar": "AR TITLE"
},
"type": "service",
"color": "#FF7689",
"image": "67b44aaae1c5fa73ee81bb13",
"slug": "blood_reports",
"created_at": "2025-02-18T08:50:26.845Z",
"updated_at": "2025-02-18T09:10:14.813Z",
"id": "67b449d2e1c5fa73ee81b9fb"
},
"final_total": 450,
"created_at": "2025-02-18T08:53:36.934Z",
"updated_at": "2025-02-18T08:53:36.934Z",
"id": "67b44a90e1c5fa73ee81bb09"
},
"appointment": "67bd711c0bf99e4a823de1d6",
"user": {
"roles": [
"677bb5bd4291b96cd0623e9a"
],
"is_master_admin": 1,
"is_temporary_password": 0,
"is_deleted": 0,
"is_active": 1,
"deleted_at": null,
"language_code": "en",
"first_name": "Deep provider2",
"middle_name": "",
"last_name": "PRO",
"full_name": "Deep provider2 PRO",
"email": "deep.marsonia+lt1@plenartech.com",
"created_at": "2025-01-06T10:51:41.468Z",
"updated_at": "2025-02-18T13:07:13.763Z",
"family_members": [
{
"name": "test2",
"gender": "male",
"birth_date": "2000-01-01T00:00:00.000Z",
"updated_at": "2025-02-11T07:16:27.156Z",
"created_at": "2025-02-11T07:16:27.156Z",
"id": "67aaf94bdda840588315f62f"
}
],
"birth_date": "1994-05-05T13:06:00.000Z",
"country_code": "+91",
"gender": "male",
"image": "67b485f920396ed6b0344079",
"phone_primary": "345345",
"id": "677bb5bd4291b96cd0623ef2"
},
"created_at": "2025-02-25T12:23:21.338Z",
"updated_at": "2025-02-25T12:27:36.062Z",
"id": "67bdb6399468a29026b4d0e9"
}
}