Create Trailer
Create a new trailer asset in Samsara.
Operation
Section titled “Operation”createTrailer
Resource
Section titled “Resource”trailer
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Name | string | Yes | - | The name of the trailer |
Additional Fields
Section titled “Additional Fields”| Field | Type | Default | Description |
|---|---|---|---|
| Serial Number | string | - | The serial number of the trailer |
| License Plate | string | - | The license plate of the trailer |
| Notes | string | - | Notes about the trailer |
| Tag IDs | string | - | Comma-separated list of tag IDs to assign to the trailer |
| Enabled for Mobile | boolean | false | 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”{ "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"}Error Handling
Section titled “Error Handling”- 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