Afya-Health
  1. Reports
Afya-Health
  • Auth
    • Login
      POST
    • Signup
      POST
  • ForgotPassword
    • Verify OTP
      POST
    • ForgotPassword
      POST
    • ResetPassword
      POST
  • Profile
    • Get User Profile
      GET
    • Update user profile
      POST
  • Family Members
    • Add Family Member
      POST
    • Update Family Members
      PUT
    • Delete Family Member
      DELETE
  • Address
    • Get User address
      GET
    • Add Address
      POST
    • Update address
      PUT
    • Delete Address
      DELETE
  • Languages
    • List AppLabels
      GET
    • Add/Update Label
      POST
    • List Languages
      GET
  • Products
    • Get Products
      GET
    • Create Product
      POST
    • Update Product
      PUT
    • Delete Product
      DELETE
    • Update product items
      PUT
  • Permissions
    • Get Permissions
  • Config
    • List Practice Config
    • Add Update Config
    • List Master Config
    • Add Update Master Config
  • Appointment Schedule
    • Create Schedule
    • Update Schedule
    • Delete Schedule
    • Get Schedule by ID
    • Get Schedule list
  • Test Tags
    • Get Test Tags
    • Create Test Tag
    • Update Test Tag
    • Delete Test Tag
  • Test Parameters
    • Get Test Parameters
    • Create Test Parameters
    • Update Test Parameters
    • Delete Test Parameters
  • Category
    • Get Category
    • Create Category
    • Update Category
    • Delete Category
  • Device
    • Register Device
  • File
    • Upload File
  • Appointment
    • Create Appointment Order
    • Get Appointments List
    • Update Appointment Status
    • Get Appointment by ID
    • Get Appointment Slots
    • GetStartJourneyDirection
  • Reports
    • Upload Report
      POST
    • List All Reports
      GET
    • List Reports By Appointment
      GET
    • Delete Report
      DELETE
    • Update Report File
      PUT
  • Staff
    • Add Staff Member
    • List Staff Member
    • Update Staff Member
    • Delete Staff Member
    • Get Staff member by ID
  • Patient
    • List Patients
    • Add Patient
    • Update Patient
    • Delete Patient
    • Get patient by ID
  • Notifications
    • List User Notifications
    • Update Notification read status
  1. Reports

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"
    }
}
Previous
Delete Report
Next
Add Staff Member
Built with