[preview] Create a fleet installer photo upload.

Creates a fleet installer photo upload session and returns a presigned S3 PUT URL. Upload the file bytes directly to the presigned URL using the headers in uploadContext, then call POST /fleet/installer/photo-uploads/complete to finalize.

Rate limit: 100 requests/min (learn more about rate limits here).

To use this endpoint, select Write Devices under the Devices category when creating or editing an API token. Learn More.

Endpoints in this section are in Preview. These APIs are not functional and are instead for soliciting feedback from our API users on the intended design of this API. Additionally, it is not guaranteed that we will be releasing an endpoint included in this section to production. This means that developers should NOT rely on these APIs to build business critical applications

  • Samsara may change the structure of a preview API's interface without versioning or any notice to API users.

  • When an endpoint becomes generally available, it will be announced in the API changelog.

Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Request body for creating a fleet installer photo upload session.

string
required
length between 24 and 24

Base64-encoded MD5 of the file bytes. Signed into the presigned URL as Content-MD5; object storage verifies upload integrity on PUT. Must be exactly 24 characters (base64-encoded 16-byte MD5 digest).

string
required

Samsara device ID. The device must belong to the caller's organization.

string
enum
required

File format. Samsara maps this to the corresponding MIME type for the presigned URL. Valid values: imageJpeg, imagePng

Allowed:
string
required
length between 1 and 255
^[^/\\]+$

Original file name. Max 255 characters; printable characters only; no null bytes or path separators (/ or ).

string
enum
required

Hardware category of the device being installed. Valid values: vehicleGateway, assetGateway, camera, cameraConnector, environmentalMonitor, assetTag, trackingLabel

Allowed:
string
enum
required

Purpose of the photo. Valid values: installPhoto, assetPhoto

Allowed:
integer
required
1 to 10485760

File size in bytes. Validated against the maximum allowed size (10 MB) and signed into the presigned URL as Content-Length.

Responses

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json