View working hour
This endpoint returns a single working hour.
Authorization
Authorization In: header
Path Parameters
ID of the working hour
int32Query Parameters
Used to scope the request to the specified institution
Resources to be included in the response
Header Parameters
The NexHealth API version
"v3.0.0"Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/working_hours/0?subdomain=string" \ -H "Nex-Api-Version: v3.0.0"{ "code": false, "description": "Description", "error": [ "Error message" ], "data": { "id": 12, "provider_id": 7, "location_id": 3, "operatory_id": 149, "begin_time": "10:30", "end_time": "17:00", "days": [ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday" ], "specific_date": "2022-11-03", "custom_recurrence": { "num": 3, "unit": "day", "ref": "2022-11-03" }, "tz_offset": "-0700", "active": true, "source": "synced", "label": { "id": 113, "location_id": 115, "name": "New patient appointments" }, "appointment_types": [ { "id": 1, "name": "Medical", "parent_type": "Institution", "parent_id": 1, "minutes": 15, "bookable_online": false } ] }, "count": 2}Create working hour POST
This endpoint creates an availability for a provider at the specified location. Exactly one of days, specific_date, or custom_recurrence must be configured.
Edit working hour PATCH
This endpoint updates an existing working hour. At most one of days, specific_date, or custom_recurrence can be provided. The appointment_types field is included in the response only when appointment_type_ids or appointment_category_ids were part of the update. Passing an empty appointment_type_ids array removes all appointment types from the working hour; omitting the key leaves them unchanged.