# Match Mechanic

Use the `POST /client/match-mechanic/`  endpoint to request a mechanic based on specific requirements such as the car's brand, model, service needed, and user location. This helps match a mechanic who meets the criteria provided by the user.

***

#### Parameters

**Request Body**

| Name           | Type   | Description                                              | Required |
| -------------- | ------ | -------------------------------------------------------- | -------- |
| `user_address` | string | The user's address.                                      | Yes      |
| `car_brand_id` | string | The ID of the car brand.                                 | No       |
| `service_id`   | string | The ID of the requested service.                         | No       |
| `car_model`    | string | The car model.                                           | No       |
| `description`  | string | A detailed description of the issue or service required. | Yes      |
| `date`         | string | Preferred date for the service (format: `YYYY-MM-DD`).   | No       |
| `time`         | string | Preferred time for the service.                          | No       |

**Example Request Body:**

```json
{
  "user_address": "123 Elm Street, Springfield",
  "car_brand_id": "ford123",
  "service_id": "engine-repair",
  "car_model": "Mustang 2020",
  "description": "Engine making unusual noise, needs inspection.",
  "date": "2024-11-20",
  "time": "14:00"
}
```

***

#### Responses

**201 Created**

**Description:** Mechanic match request successfully created.

**Example Response:**

```json
{
  "profile_pic": "https://example.com/user_pic.jpg",
  "mechanic_picture": "https://example.com/mechanic_pic.jpg",
  "user_address": "123 Elm Street, Springfield",
  "car_brand_id": "ford123",
  "service_id": "engine-repair",
  "car_model": "Mustang 2020",
  "description": "Engine making unusual noise, needs inspection.",
  "date": "2024-11-20",
  "time": "14:00"
}
```
