Upload User Supporting Document
PUT /user/admin/upload-supporting-document/{user_id}/
The PUT /user/admin/upload-supporting-document/{user_id}/
endpoint allows an admin user to upload or modify the supporting documents of a specific user. Admins can update details such as car specialities, services, and personal documents.
Parameters
Path Parameters
user_id
(string) A unique identifier for the user whose supporting document is being updated.
Request Body
Example Value:
{
"car_speciality_ids": [1, 2, 3],
"services_id": [101, 102],
"education_level": "High School",
"workshop_location": "123 Mechanic Street, Auto City",
"profile_pic": {
"profile_pic": "https://example.com/images/profile-pic.jpg"
},
"supported_document": {
"user": "USR12345",
"document": "https://example.com/documents/license.pdf"
},
"update_is_active": true
}
Fields:
Request Body Fields
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
200 OK
Description: Supporting document successfully uploaded or modified.
Example Response:
{
"id": 456,
"car_speciality": [
{
"id": 1,
"name": "Toyota"
},
{
"id": 2,
"name": "Honda"
}
],
"services": [
{
"id": 101,
"name": "Oil Change"
},
{
"id": 102,
"name": "Brake Replacement"
}
],
"education_level": "High School",
"workshop_location": "123 Mechanic Street, Auto City",
"profile_pic": {
"profile_pic": "https://example.com/images/profile-pic.jpg"
},
"supported_document": {
"id": "DOC123",
"user": "USR12345",
"document": "https://example.com/documents/license.pdf",
"uploaded_at": "2024-11-17T12:34:56Z"
},
"update_is_active": true
}
Last updated