Create document

Creates a single document. The legacy version of this endpoint can be found at samsara.com/api-legacy.

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

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

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.

Body Params
string
required

ID for the document type.

string
required

ID of the driver. Can be either unique Samsara ID or an external ID for the driver.

fields
array of objects

The fields associated with this document.

fields
string

Name of the document.

string
length ≤ 2000

Notes on the document.

string

ID of the route stop. Can be either unique Samsara ID or an external ID for the route stop.

string
enum
Defaults to required

The condition of the document created for the driver. Can be either required or submitted, if no value is specified, state defaults to required. required documents are pre-populated documents for the Driver to fill out in the Driver App. Valid values: submitted, required

Allowed:
string

ID of the vehicle. Can be either unique Samsara ID or an external ID for the vehicle.

Responses

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