Update a trailer
Update a trailer. Note this implementation of patch uses the JSON merge patch proposed standard. This means that any fields included in the patch request will overwrite fields which exist on the target resource. For arrays, this means any array included in the request will replace the array that exists at the specified path, it will not add to the existing array
<b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
To use this endpoint, select Write Trailers under the Trailers category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
Request
- Base URLhttps://api.samsara.com
- AuthHTTP bearer
Path parameters
ID of the trailer. Can be either unique Samsara ID or an external ID for the trailer.
Request body
Example request
{
"attributes": [
{
"dateValues": [
"2024-01-15",
"2024-12-31"
],
"id": "494123",
"name": "Compliance/ELD",
"numberValues": [
867,
5309
],
"stringValues": [
"HQ",
"Leased"
]
}
],
"enabledForMobile": true,
"licensePlate": "7TYP290",
"name": "Trailer-123",
"notes": "These are my trailer notes",
"odometerMeters": 1234,
"tagIds": [
"Magnam omnis et et occaecati.",
"Temporibus voluptas.",
"Commodi pariatur."
],
"trailerSerialNumber": "8V8WD530FLN016251"
}Response
OK response.
Example response
{
"data": {
"attributes": [
{
"dateValues": [
"2024-01-15",
"2024-12-31"
],
"id": "494123",
"name": "Compliance/ELD",
"numberValues": [
867,
5309
],
"stringValues": [
"HQ",
"Leased"
]
}
],
"enabledForMobile": true,
"id": "494123",
"installedGateway": {
"model": "VG34",
"serial": "GFRV-43N-VGX"
},
"licensePlate": "7TYP290",
"name": "Trailer-123",
"notes": "These are my trailer notes",
"tags": [
{
"id": "3914",
"name": "East Coast",
"parentTagId": "4815"
}
],
"trailerSerialNumber": "8V8WD530FLN016251"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.