Update an existing asset.
Update an existing asset.
<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 Assets under the Assets 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
Query parameters
ID of the asset to update. Can be either a unique Samsara ID or an external ID for the asset.
Request body
Example request
{
"attributes": [
{
"dateValues": [
"2024-01-15",
"2024-12-31"
],
"id": "494123",
"name": "Compliance/ELD",
"numberValues": [
867,
5309
],
"stringValues": [
"HQ",
"Leased"
]
}
],
"licensePlate": "XHK1234",
"make": "Bobcat",
"model": "S630 T4",
"name": "MyAsset-1234",
"notes": "These are notes.",
"regulationMode": "mixed",
"serialNumber": "LN016251",
"tagIds": [
"Illo reiciendis repudiandae aut possimus enim.",
"Voluptates consectetur alias voluptates aspernatur.",
"Id est."
],
"type": "trailer",
"vin": "1FUJBBCKXCLBZ1234",
"year": 2015
}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"
]
}
],
"createdAtTime": "2020-01-27T07:06:25Z",
"id": "12345",
"licensePlate": "XHK1234",
"make": "Bobcat",
"model": "S630 T4",
"name": "MyAsset-1234",
"notes": "These are notes.",
"regulationMode": "mixed",
"serialNumber": "LN016251",
"tags": [
{
"id": "3914",
"name": "East Coast",
"parentTagId": "4815"
}
],
"type": "trailer",
"updatedAtTime": "2020-01-27T07:06:25Z",
"vin": "1FUJBBCKXCLBZ1234",
"year": 2015
}
}Changes
No recorded changes to this operation across all 1 revision of this API.