Favoriting Clinicians
POST/api/v2/public/facilities/favoriting-clinician
Auto scheduler will prioritize favorited clinicians.
Request
- application/json
Body
required
facilityId stringrequired
Facility ID
clinicianId stringrequired
Clinician ID
isFavorited booleanrequired
Favorite/Unfavorite a clinician
Responses
- 201
- 400
- 401
- 403
- 404
Empty Response
Bad request
- application/json
- Schema
- Example (from schema)
- Request Validation
Schema
message string[]
Error description
error string
The type of error
statusCode integer
Status code of the error
{
"message": [
"Property must be a string"
],
"error": "Bad Request",
"statusCode": 400
}
Request Validation Error
{
"message": [
"facilityId must be a string",
"clinicianId must be a string",
"isFavorited must be a boolean value"
],
"error": "Bad Request",
"statusCode": 400
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
message string
Error description
statusCode integer
Status code of the error
{
"message": "Unauthorized",
"statusCode": 401
}
Forbidden
- application/json
- Schema
- Example (from schema)
- Clinician Blocked
Schema
message string
Error description
error string
The type of error
statusCode integer
Status code of the error
{
"message": "Forbidden Resource",
"error": "Forbidden",
"statusCode": 403
}
Clinician is blocked
{
"message": "Clinician is blocked",
"error": "Forbidden",
"statusCode": 403
}
Not Found
- application/json
- Schema
- Example (from schema)
- Clinician Not Found
Schema
message string
Error description
error string
The type of error
statusCode integer
Status code of the error
{
"message": "Not Found",
"error": "Not Found",
"statusCode": 404
}
Clinician is no longer available for favoriting
{
"message": "Clinician is no longer available for favoriting",
"error": "Not Found",
"statusCode": 404
}
Loading...