Update Trailer
Update an existing trailer record in Samsara by its ID.
Operation
Section titled “Operation”updateTrailer
Resource
Section titled “Resource”trailer
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Trailer ID | string | Yes | - | The ID of the trailer to update |
Update Fields
Section titled “Update Fields”| Field | Type | Description |
|---|---|---|
| Name | string | The name of the trailer |
| Serial Number | string | The serial number of the trailer |
| License Plate | string | The license plate of the trailer |
| Notes | string | Notes about the trailer |
| Enabled for Mobile | boolean | Whether the trailer is enabled for mobile |
| External IDs (JSON) | json | External IDs as a JSON object |
Response
Section titled “Response”Success
Section titled “Success”Returns the updated trailer record:
{ "id": "trailer_123", "name": "Trailer A - Updated", "serial": "TRL-001-NEW", "licensePlate": "TR-9999", "notes": "Updated notes", "enabledForMobile": true, "externalIds": { "fleetSystem": "TRL001-UPD" }}{ "success": false, "error": "Trailer not found", "trailerId": "invalid_id"}Error Handling
Section titled “Error Handling”- Missing API Token: Samsara credential is missing apiToken
- Trailer Not Found: Trailer with specified ID does not exist
- Validation Error: Invalid field values provided