Create
Developing
POST
/maintenance_reports
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/maintenance_reports' \
--header 'Authorization: {{token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"maintenance_report": {
"description": "{{$lorem.paragraph}}",
"priority": "alta",
"reported_at": "2025-06-01",
"vehicle_id": 1
}
}'
Response Response Example
201 - Success
{
"id": 2,
"description": "Averto statim claudeo thesaurus bene summa nostrum cupressus. Tollo vito credo conicio vilicus depono. Theca reiciendis curso cohibeo teneo vespillo catena trado.",
"priority": "alta",
"reported_at": "2025-06-01T00:00:00.000Z",
"status": "pendiente",
"user": {
"id": 3,
"email": "driver@vehicles.com",
"role": "chofer"
},
"vehicle": {
"id": 1,
"license_plate": "ABC1234",
"make": "Kia",
"model": "Corolla",
"status": "en_taller",
"year": 2020
}
}
Request
Header Params
Authorization
string
required
Example:
{{token}}
Body Params application/json
Responses
Modified at 2025-06-13 21:33:11