Endpoint
Authentication
Description
Soft deletes a doctor by setting theiractivo status to false. This is not a permanent deletion - the doctor record remains in the database but is marked as inactive.
This is a soft delete operation. The doctor record is preserved in the database but marked as inactive. This allows maintaining historical data and relationships while removing the doctor from active use.
Path Parameters
Unique identifier of the doctor to deactivate
Response
Returns a success message confirming the deactivation.Response Fields
Confirmation message indicating successful deactivation
Example Request
Example Response
Error Responses
401 Unauthorized
Missing or invalid authentication token
403 Forbidden
User does not have admin role
404 Not Found
Doctor with the specified ID does not exist
500 Internal Server Error
Server error while deactivating doctor
Reactivation
Notes
- Deactivated doctors will not appear in the public doctors list (
/api/medicos/public) - Deactivated doctors are still visible in the admin list (
/api/medicos) - All historical data and relationships are preserved
- The associated person record remains unchanged