Create Mechanic Availability
POST /client/schedule-availability/
Use the POST /client/schedule-availability/
endpoint to create the availability schedule for a mechanic. You can specify which days and times the mechanic is available to work.
Parameters
Request Body:
Name
Type
Description
Required
days
array
A list of days when the mechanic is available.
Yes
start_time
string
The start time for the mechanic's availability on the selected days.
Yes
end_time
string
The end time for the mechanic's availability on the selected days.
Yes
Valid days
values:
mon
,tue
,wed
,thu
,fri
,sat
,sun
Example Request Body:
{
"days": ["mon", "wed", "fri"],
"start_time": "08:00",
"end_time": "17:00"
}
Responses
201 Created
Description: The mechanic's availability schedule was successfully created.
Example Response:
{
"days": ["mon", "wed", "fri"],
"start_time": "08:00",
"end_time": "17:00"
}
Last updated