Update Service Record
Update an existing lubrication service record.Path Parameters
Service record ID to update
Request Body
Service date in YYYY-MM-DD format
ID of the driver
ID of the vehicle plate
ID of the operational area
Washing service cost
Lubrication service cost
Other services cost
Additional notes or comments
You can update any combination of fields. Only provided fields will be updated.
Response
Returns the updated service record with all fields.Service record ID
User ID who updated the record
Timestamp of the update (ISO 8601)
Example Request
Example Response
Common Update Scenarios
Update Cost Values
Modify service costs:Update Observations
Add or modify notes:Change Vehicle or Driver
Reassign the service to different vehicle/driver:Change Date
Correct the service date:Automatic Updates
The following fields are automatically updated:
sumais recalculated when any cost field changesactualizado_poris set to the authenticated user’s IDactualizado_enis set to the current timestamp
Error Responses
Service Not Found
Invalid Data
Unauthorized
Best Practices
Audit Trail: Every update records who made the change and when
Partial Updates: Only send fields that need to be updated
Validation: Verify foreign key IDs exist before updating