> For the complete documentation index, see [llms.txt](https://requestmechanic.gitbook.io/request-mechanic-api-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://requestmechanic.gitbook.io/request-mechanic-api-documentation/client/create-mechanic-availability.md).

# Create Mechanic 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:**

```json
{
  "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:**

```json
{
  "days": ["mon", "wed", "fri"],
  "start_time": "08:00",
  "end_time": "17:00"
}
```
