Creates a new preventive routine with associated rules and site assignments.
MANAGER[ADMIN, USER]Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Content type, must be "application/json".
"application/json"Session token used for authenticating the request.
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjM0NTY3ODkwIiwic2Vzc2lvbklkIjoiYWJjZGVmMTIzNDU2IiwiaWF0IjoxNjA1MDk3ODk5LCJleHAiOjE2MDUxODQyOTl9.4XRQ1iXDyvEj5LgPZHbmTmzOZs98M3YPOzgf3MhxjaI"
Details required to create a preventive routine
Name of the routine.
250"Monthly Maintenance"
Whether the routine automatically creates interventions.
true
List of site rule IDs to associate with the profile.
1-9007199254740991 <= x <= 9007199254740991[1, 2, 3]Description of the routine.
2500"This routine involves monthly maintenance checks for all equipment."
Whether the routine automatically attaches files to the interventions.
false
Unique identifier of the company contact assigned to the routine.
-9007199254740991 <= x <= 90071992547409911
Unique identifier of the user assigned to the routine.
-9007199254740991 <= x <= 90071992547409911
Unique identifier of the contract associated with the routine.
-9007199254740991 <= x <= 90071992547409911
Preventive routine created successfully