Skip to content

Create Trailer

Create a new trailer asset in Samsara.

createTrailer

trailer

ParameterTypeRequiredDefaultDescription
NamestringYes-The name of the trailer
FieldTypeDefaultDescription
Serial Numberstring-The serial number of the trailer
License Platestring-The license plate of the trailer
Notesstring-Notes about the trailer
Tag IDsstring-Comma-separated list of tag IDs to assign to the trailer
Enabled for MobilebooleanfalseWhether the trailer is enabled for mobile
External IDs (JSON)json{}External IDs as a JSON object
{
"id": "trailer_123",
"name": "New Trailer",
"serial": "TRL-NEW-001",
"licensePlate": "TR-5678",
"notes": "New 53ft refrigerated trailer",
"enabledForMobile": true,
"tags": [
{
"id": "tag_1",
"name": "Refrigerated"
}
],
"externalIds": {
"fleetSystem": "TRL-NEW"
}
}
{
"success": false,
"error": "Trailer with this name already exists",
"name": "New Trailer"
}
  • Missing API Token: Samsara credential is missing apiToken
  • Duplicate Name: Trailer with this name already exists
  • Invalid Tag ID: One or more tag IDs not found
  • Validation Error: Invalid field values provided