Mechanic Registration - Step 3(Partial Update)
PATCH /user/registration/step3/mechanic/
The PATCH /user/registration/step3/mechanic/
endpoint allows a mechanic to update their Step 3 registration details, including car specialities, services, education level, and supporting documents.
Parameters
Name
Type
Location
Description
data
Object
Body
The data object containing mechanic registration details.
Request Body
Field
Type
Description
car_speciality_ids
Array of integers
IDs of the car specialities the user is associated with.
services_id
Array of integers
IDs of the services the user provides.
education_level
String (nullable)
The education level of the user.
workshop_location
String (nullable)
Location of the user's workshop.
profile_pic
Object
Contains the profile picture URL.
profile_pic
String
URL of the user's profile picture.
supported_document
Object
Contains details of the supporting document.
user
String
ID of the user.
document
String
URL of the uploaded document.
update_is_active
Boolean
Indicates if the update is active.
Responses
Status Code
Description
200
The mechanic's Step 3 registration details were successfully updated.
Example Response
Code: 200
{
"id": 1,
"car_speciality": [
{
"id": 10,
"name": "Toyota"
}
],
"car_speciality_ids": [10],
"services": [
{
"id": 20,
"name": "Oil Change"
}
],
"services_id": [20],
"education_level": "High School",
"workshop_location": "123 Main St",
"profile_pic": {
"profile_pic": "https://example.com/profile_pic.jpg"
},
"supported_document": {
"id": "abc123",
"user": "user_001",
"document": "https://example.com/document.pdf",
"uploaded_at": "2024-12-10T00:00:00Z"
},
"update_is_active": true
}
Last updated