Update a preventive maintenance schedule

Updates an existing preventive maintenance schedule definition by Samsara id. After the update, at least one of distanceInterval, dateIntervalMs, or engineHourInterval must remain set to a positive value. Targeting fields such as assetIds and tagIds are not accepted on update.

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

To use this endpoint, select Write Preventive Maintenance Schedules 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
required

Unique identifier for the PreventativeMaintenanceSchedule record.

Body Params

Request body for updating a PreventativeMaintenanceSchedule

int64

Date interval for the preventive maintenance schedule if applicable. Measured in milliseconds.

string

Description of the preventive maintenance schedule.

int64

Distance interval for the preventive maintenance schedule if applicable. Measured in meters.

int64

Engine hour interval for the preventive maintenance schedule if applicable.

linkedScheduleIds
array of strings

IDs of other preventive maintenance schedules linked to this schedule.

linkedScheduleIds
string

Optional PM schedule type. Wire values are A, B, C, or D. Omitted when the schedule is untyped.

string

Title of the preventive maintenance schedule.

string

ID of the work order template associated with this schedule.

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