- 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 Report
Developing
DELETE
/api/service/v1/reports/{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}}
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/reports/' \
--header 'Accept: application/json' \
--header 'practice-code: DEFAULT' \
--header 'Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3YjJkZmZlNWJmMjdlMzk1NTUzMjE0MyIsImVtYWlsIjoiZGVlcC5tYXJzb25pYUBwbGVuYXJ0ZWNoLmNvbSIsInN1YiI6IjY3YjJkZmZlNWJmMjdlMzk1NTUzMjE0MyIsImlhdCI6MTc0MTc4MjA4NCwiZXhwIjoxNzQ5NTU4MDg0fQ.KAMsweSbJPDxpLijKdjgp3YEFauw8KYLLumCBpqQfAA' \
--header 'Content-Type: application/json'
Responses
🟢200Success
application/json
Body
error
boolean
required
status_code
integer
required
message
string
required
data
object
required
is_deleted
integer
required
file
string
required
family_member
string
required
product
string
required
appointment
string
required
user
string
required
created_at
string
required
updated_at
string
required
id
string
required
Examples
{
"error": false,
"status_code": 200,
"message": "Report deleted successfully",
"data": {
"is_deleted": 1,
"file": "67aafc1a2fbff95f9bf6cc44",
"family_member": "67aaf94bdda840588315f62f",
"product": "67975664eb8b1053d7d780c8",
"appointment": "67a9f1581c069b9f8322d5aa",
"user": "677bb5bd4291b96cd0623ef2",
"created_at": "2025-02-11T07:28:26.049Z",
"updated_at": "2025-02-11T09:57:59.974Z",
"id": "67aafc1a2fbff95f9bf6cc46"
}
}