Endpoint
Authentication
Description
Updates the information of an existing doctor. You can modify the specialty, email, professional license number, and active status. Note that the associated person cannot be changed.Path Parameters
Unique identifier of the doctor to update
Request Body
All fields are optional. Only include the fields you want to update.
ID of the medical specialty to assign to the doctor
Professional email address for the doctor
Professional license or medical registration number
Whether the doctor is active in the system
Response
Returns the updated doctor object.Response Fields
Unique identifier for the doctor
ID of the associated person (unchanged)
Updated specialty ID
Updated email address
Updated professional license number
Updated active status
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 updating doctor
Notes
- The
persona_idcannot be changed after a doctor is created - To deactivate a doctor without deleting their record, set
activotofalse - All fields in the request body are optional - only send the fields you want to update