- 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 Staff Member
Developing
DELETE
/api/service/v1/user/staff/{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/user/staff/' \
--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
roles
array [object {8}]
required
is_master_admin
integer
required
is_temporary_password
integer
required
is_deleted
integer
required
is_active
integer
required
deleted_at
null
required
language_code
string
required
family_members
array[string]
required
first_name
string
required
middle_name
string
required
last_name
string
required
full_name
string
required
email
string
required
phone_primary
string
required
country_code
string
required
birth_date
string
required
gender
string
required
image
object
required
created_at
string
required
updated_at
string
required
id
string
required
Example
{
"error": false,
"status_code": 200,
"message": "User deleted successfully",
"data": {
"roles": [
{
"practice": "677bb5bd4291b96cd0623e93",
"deleted_at": null,
"is_deleted": 0,
"name": "Lab Technician",
"slug": "lab_technician",
"created_at": "2025-01-06T10:51:41.296Z",
"updated_at": "2025-01-06T10:51:41.296Z",
"id": "677bb5bd4291b96cd0623e9a"
}
],
"is_master_admin": 0,
"is_temporary_password": 0,
"is_deleted": 1,
"is_active": 1,
"deleted_at": null,
"language_code": "en",
"family_members": [],
"first_name": "John new",
"middle_name": "Doe",
"last_name": "Doe",
"full_name": "John new Doe Doe",
"email": "john.doe30@example.com",
"phone_primary": "1234567890",
"country_code": "123",
"birth_date": "2000-01-01T00:00:00.000Z",
"gender": "male",
"image": {
"original_name": "Screenshot from 2025-01-09 19-15-40.png",
"file_name": "public/profiles/646ff243-3775-448f-ab01-2ea318902417_1738217054924_Screenshot_from_2025-01-09_19-15-40.png",
"path": "https://afyahealth.doctodoor.com.s3.us-east-1.amazonaws.com/public/profiles/646ff243-3775-448f-ab01-2ea318902417_1738217054924_Screenshot_from_2025-01-09_19-15-40.png",
"size": 65614,
"mimeType": "image/png",
"created_at": "2025-01-30T06:04:17.668Z",
"updated_at": "2025-01-30T06:04:17.668Z",
"id": "679b1661fa2cf444260082b6",
"media_url": "https://d3ektmb2e4ajpb.cloudfront.net/public/profiles/646ff243-3775-448f-ab01-2ea318902417_1738217054924_Screenshot_from_2025-01-09_19-15-40.png"
},
"created_at": "2025-01-30T06:06:34.875Z",
"updated_at": "2025-01-30T06:31:38.267Z",
"id": "679b16ea5f2df04735ce8b15"
}
}