Working Hours
Create working hour
This endpoint creates an availability for a provider at the specified location. Exactly one of days, specific_date, or custom_recurrence must be configured.
Authorization
Authorization Authorization<token>
In: header
Query Parameters
subdomain*string
Used to scope the request to the specified institution
location_id*integer
Used to scope the request to the specified location
Format
int32Header Parameters
Nex-Api-Version*string
The NexHealth API version
Default
"v3.0.0"Request Body
application/json
Create working hour
working_hour*
Configure only one of days, specific_date or custom_recurrence
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/working_hours?subdomain=string&location_id=0" \ -H "Nex-Api-Version: v3.0.0" \ -H "Content-Type: application/json" \ -d '{ "working_hour": { "provider_id": 7, "begin_time": "09:00", "end_time": "16:00" } }'{ "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" } }, "count": 2}