Community
502 Gateway Error
We pull all driver data through API and it has worked until recently. We just started receiving 502 Gateway errors and are now not receiving any data. Is anyone else experiencing this? Or any solutions?
Posted by Adam 6 days ago
Vehicle List filtering (updatedAfterTime,createdAfterTime)
Hello I'm testing the list vehicle endpoint, and I have a doubt:
When I filter by **updatedAfterTime**, the new vehicles created will also appear.
Or i another case if I filter by **createdAfterTime** will the updated records show up to?
I saw that both filters can't be used in this request and I'm trying to figure out the best way to get all incremental information in just one call.
Posted by Patricia 7 days ago
Sending request to create a document with url of photo
Hello,
I'm trying to create a document with 'submitted' state and filled field values.
One of required fields has photo type.
Example of request from <https://developers.samsara.com/reference/postdocument>
curl --request POST
--url <https://api.samsara.com/fleet/documents>
--header 'accept: application/json'
--header 'content-type: application/json'
--data '
{
"state": "submitted",
"fields": \[
{
"type": "photo",
"value": {
"photoValue": [
{
"id": "f5271458-21f9-4a9f-a290-780c6d8840ff",
"url": "https://samsara-driver-media-upload.s3.us-west-2.amazonaws.com/123456"
}
]
},
"label": "field label"
}
],
"documentTypeId": "9814a1fa-f0c6-408b-bf85-51dc3bc71ac7",
"driverId": "45646",
"name": "Dropoff Slip 123",
"routeStopId": "45646"
}
'
When I'm trying to send such request, I get 400 Bad Request.
Error message: "document media field \"FIELD LABEL\" is required and must contain a value"
I've found out from <https://developers.samsara.com/docs/creating-documents#photo-fields>
that photos cannot be submitted via the API. The value for a photo field must be left blank.
Is this information up to date? Is there no way to create document with photo value via API?
Thank you in advance,
Viktoriia
Posted by Viktoriia Zinchenko 12 days ago
Data Replication (Database/CSV)
Under example scripts, there is an example of "Data Replication (Database/CSV)". Do you have an example code in C# or VB.NET (.Net Framework)?
Posted by Vincent Nguyen 15 days ago
Endpoints/Correct URL for Footage Pulling
I'm trying to build a tool to automate footage pulling using Zapier and Samsara API. Is there an endpoint URL that can be used to pull footage from specific vehicles?
Posted by Dylan Romaine 18 days ago
ETA
how i can turn ETA and miles to ahipper or delivery
Posted by Miraziz Mahmudjonov 22 days ago
Remote access to do a forced regen
Does Samsara have any collaborations, integrations with diagnostic software from Volvo, Detroit Diagnostic or OTR Performance Diagnostic Tool or any other so a technician could get a remote access to a truck's ECU in order to perform distant programming like calibrations, all types of regens, resets, check up tests, fault codes deletion, etc.?
Example: a truck is in derate mode thousand miles away, cannot drive more than 5 m/h, no adequate service nearby, weekend.... In 80% cases this issue can be solved by a trusted diagnostic specialist within 1-3 hours using software tools. No need to overpay to mobile road service, no towing, no other unnecessary expenses.
So is there any hope for this feature?
Posted by Vik Key about 1 month ago
Which EVs/HEVs report on which stats?
I am building an integration focused on fetching data for EV fleets from the `fleet/vehicles/stats`endpoint. I've been reading through the openapi spec for these 12 properties:
```
"evStateOfChargeMilliPercent",
"evChargingStatus",
"evChargingEnergyMicroWh",
"evChargingVoltageMilliVolt",
"evChargingCurrentMilliAmp",
"evConsumedEnergyMicroWh",
"evRegeneratedEnergyMicroWh",
"evBatteryVoltageMilliVolt",
"evBatteryCurrentMilliAmp",
"evBatteryStateOfHealthMilliPercent",
"evAverageBatteryTemperatureMilliCelsius",
"evDistanceDrivenMeters",
```
But all of them have the disclaimer, "Not all EV and HEVs may report this field."
My question is - what EVs or HEVs **do** support those fields? Since I can only fetch up to three of these types at a time, I'd like to prioritize the fields that are most widely supported by the largest number of EV makes/models.
Thank you!
Posted by Amanda S about 2 months ago
External ID not creating
Hello, team
I'm trying to add external ID to my address, and JSON seems to be ok
<br />
**to create address** {"addresses":{
"formattedAddress":"134 Norfinch Drive, North York, ON, M3N 1X7, Canada",
"name":"Upper Crust North York",
"geofence":{"circle":{"radiusMeters":250}},
**"externalIds":{"objectId":"abc12345"}**
}}
but the response from the server does not contain it
**Response**
\[{
"id":170514113,
"name":"Upper Crust North York",
"createdAtTime":"2024-08-20T21:18:40.913517391Z",
"formattedAddress":"134 Norfinch Drive, North York, ON, M3N 1X7, Canada",
"geofence":{"circle":{"radiusMeters":250}},
"contacts":\[]}]
Please, advise, maybe Im missing smth?
Posted by Serge about 2 months ago
AG53 Inputs
Is that a way to read the inputs from an AG53?
Posted by Cory Juby about 2 months ago