Creates a new training routine with associated rules and user 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 training routine
List of rule IDs to associate with the profile.
1Unique identifier of the rule.
-9007199254740991 <= x <= 9007199254740991[1, 2, 3]Unique identifiers of the users.
1-9007199254740991 <= x <= 9007199254740991[1, 2, 3]Name of the routine.
250"Monthly Maintenance"
Whether the routine automatically creates interventions.
true
Unique identifier of the company contact assigned to the routine.
-9007199254740991 <= x <= 90071992547409911
Unique identifier of the contract associated with the routine.
-9007199254740991 <= x <= 90071992547409911
Description of the routine.
2500"This routine involves monthly maintenance checks for all equipment."
Training routine created successfully
Unique identifier of the routine.
-9007199254740991 <= x <= 90071992547409911
Name of the routine.
250"Monthly Maintenance"
Description of the routine.
2500"This routine involves monthly maintenance checks for all equipment."
Type of the routine (1: training, 2: training).
2
Whether the routine automatically creates interventions.
true
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
Date and time when the routine was archived.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$"2024-12-01T12:34:56.000Z"
Date of the last update of the anomaly.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$"2024-12-05T14:56:23.000Z"
Date of anomaly creation.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$"2024-01-15T08:45:00.000Z"