Skip to content

Update Trailer

Update an existing trailer record in Samsara by its ID.

updateTrailer

trailer

ParameterTypeRequiredDefaultDescription
Trailer IDstringYes-The ID of the trailer to update
FieldTypeDescription
NamestringThe name of the trailer
Serial NumberstringThe serial number of the trailer
License PlatestringThe license plate of the trailer
NotesstringNotes about the trailer
Enabled for MobilebooleanWhether the trailer is enabled for mobile
External IDs (JSON)jsonExternal IDs as a JSON object

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"
}
  • Missing API Token: Samsara credential is missing apiToken
  • Trailer Not Found: Trailer with specified ID does not exist
  • Validation Error: Invalid field values provided