Skip to main content
POST
/
drivers
/
qr-codes
Create new QR code for driver
curl --request POST \
  --url https://api.samsara.com/drivers/qr-codes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "driverId": 494123
}
'
{
  "data": {
    "driverId": 494123,
    "qrCodeLink": "https://cloud.samsara.com/qr_code/18979ef6-663e-446b-8d5a-0ff0781b8bab"
  }
}

Documentation Index

Fetch the complete documentation index at: https://samsara-showcase.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Driver to assign a new QR code to.

driverId
integer<int64>
required

Unique ID of the driver.

Example:

494123

Response

OK response.

data
object
required

A single document.