- Introduction
- Getting Started
- Authentication
- Error Handling
- Contact Support
- Modaltrans API
- Get Auth Token
- Accounting
- Customs
- Logistics
- Depot
- Fleet Management
- Drivers
- Vehicles
- Gps Service Controller
- Service Logs
- Periodic Documents
- CRM
- Timelines
- S3 Files
- Notifications
- User Details
Update a Service Log
Developing
Testing Env
https://demo.modaltrans.com
Testing Env
https://demo.modaltrans.com
PATCH
/api/v1/servicelogs/{uuid}
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
uuid
string
required
Body Params application/json
servicelog
object
required
service_date
string <date>
optional
vehicle_code
string
optional
damage_type
enum<string>
optional
Allowed values:
Tire BreakdownEngine FailureElectronic FailureOther Failure
notes
string
optional
base64_image
string
optional
Example
{
"servicelog": {
"notes": "UPDATE DENEME3",
"vehicle_code": "11DEMO11",
"service_date": "2024-08-09"
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://demo.modaltrans.com/api/v1/servicelogs/' \
--header 'Content-Type: application/json' \
--data-raw '{
"servicelog": {
"notes": "UPDATE DENEME3",
"vehicle_code": "11DEMO11",
"service_date": "2024-08-09"
}
}'
Responses
🟢200Success
application/json
Body
alert
string
required
Example
{
"alert": "Service Log has been updated succesfully"
}
🟠403Forbidden
🟠404Record Not Found
🟠400Bad Request
Modified at 2024-08-29 12:20:05