Create a mechanic DVIR

Creates a new mechanic DVIR in the organization.

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.

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

Body Params

The DVIR to create.

string
required

Samsara user ID of the mechanic creating the DVIR.

string
length ≤ 12

The license plate of this vehicle.

string

Optional string if your jurisdiction requires a location of the DVIR.

string

The mechanics notes on the DVIR.

integer

The odometer reading in meters.

resolvedDefectIds
array of strings

Array of ids for defects being resolved with this DVIR.

resolvedDefectIds
string
enum
required

Whether or not this vehicle or trailer is safe to drive.

Allowed:
string

Id of trailer being inspected. Either vehicleId or trailerId must be provided.

string
enum
required

Only type 'mechanic' is currently accepted.

Allowed:
string

Id of vehicle being inspected. Either vehicleId or trailerId must be provided.

Responses

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