Delete Staff¶
Soft-delete a staff member by marking their account (and doctor profile, if applicable) as deleted.
Endpoint¶
Path Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
userId |
integer | Yes | User ID of the staff member to delete |
Request¶
curl --location --request DELETE '{base_url}/v1/user/deleteStaff/10234' \
--header 'Authorization: Bearer JWT_TOKEN'
Response¶
Success Response¶
Code: 200 OK
For staff with the DOCTOR role:
Response Fields¶
| Field | Type | Description |
|---|---|---|
data |
string | Confirmation message |
Error Response¶
Code: 400 Bad Request
Notes¶
- This is a soft delete — the record is not removed from the database; its
statusis set toDELETED. - If the user has the
DOCTORrole, the associated doctor profile is also marked as deleted. - Requires
ORGANISATION_MANAGEMENTread-write permission, or the caller must be deleting their own account.