[beta] Update an upcoming preventive maintenance instance

Patches the due-target and last-resolved values on the open preventive maintenance instance for a schedule and asset. Only fields provided in the request are updated.

Rate limit: 5 requests/sec (learn more about rate limits here).

To use this endpoint, select Write Upcoming Preventive Maintenance under the Preventive Maintenance 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.

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

Samsara ID for the asset.

string

ID of the preventive maintenance schedule that the vehicle is scheduled to be serviced for.

Body Params

Request body for updating a UpcomingPreventativeMaintenance

string

Date and time when the prior instance was resolved.

int64

Engine hours at the time the prior instance was resolved.

int64

Odometer reading at the time the prior instance was resolved. Measured in meters.

int64

The next engine hour value that the vehicle is scheduled to be serviced.

int64

The next odometer value that the vehicle is scheduled to be serviced. Measured in meters.

string

The next time that the vehicle is scheduled to be serviced for a date based PM.

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