Create a new schedule.
A JSON object containing schedule information.
Successful operation
Unprocessable Content
{- "name": "Airborne",
- "start_time_tolerance_yellow": 3,
- "start_time_tolerance_red": 7,
- "start_time_score_green": 3,
- "start_time_score_yellow": 1,
- "start_time_score_red": 0,
- "start_time_threshold_yellow": 90,
- "start_time_threshold_red": 65,
- "end_time_tolerance_yellow": 3,
- "end_time_tolerance_red": 7,
- "end_time_score_green": 3,
- "end_time_score_yellow": 1,
- "end_time_score_red": 0,
- "end_time_threshold_yellow": 90,
- "end_time_threshold_red": 65
}
{- "success": true,
- "hash": "e03429dc94d99e8beea4443409c88a7c524e5c29",
- "data": {
- "id": 67,
- "hash": "ac9d603a447be33f033a1205b5dd4d437f12c79c",
- "name": "Schedule",
- "start_time_tolerance_yellow": 3,
- "start_time_tolerance_red": 7,
- "start_time_tolerance_started": 7,
- "start_time_score_green": 3,
- "start_time_score_yellow": 1,
- "start_time_score_red": 0,
- "start_time_threshold_yellow": 90,
- "start_time_threshold_red": 65,
- "end_time_tolerance_yellow": 3,
- "end_time_tolerance_red": 7,
- "end_time_tolerance_finished": 7,
- "end_time_score_green": 3,
- "end_time_score_yellow": 1,
- "end_time_score_red": 0,
- "end_time_threshold_yellow": 90,
- "end_time_threshold_red": 65,
- "created_time": "2022-07-15T13:19:42.000000Z",
- "modified_time": "2022-07-15T13:19:42.000000Z",
- "modified_user_time": "2022-07-15T13:19:42.000000Z",
- "model": "Schedule",
- "created_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}, - "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}
}, - "timestamp": 1657891183010
}
Get all schedules of the authenticated hub.
Successful operation
{- "success": true,
- "hash": "e46d4f508143daf4869b678c2e96a6f234ee89cd",
- "data": [
- {
- "id": 1,
- "hash": "2bcdb7ee82d4b10eea0f1df400c79d93499ddffb",
- "name": "Airborne (Default)",
- "start_time_tolerance_yellow": 3,
- "start_time_tolerance_red": 7,
- "start_time_tolerance_started": 7,
- "start_time_score_green": 3,
- "start_time_score_yellow": 1,
- "start_time_score_red": 0,
- "start_time_threshold_yellow": 90,
- "start_time_threshold_red": 65,
- "end_time_tolerance_yellow": 3,
- "end_time_tolerance_red": 7,
- "end_time_tolerance_finished": 7,
- "end_time_score_green": 3,
- "end_time_score_yellow": 1,
- "end_time_score_red": 0,
- "end_time_threshold_yellow": 90,
- "end_time_threshold_red": 65,
- "created_time": "2022-06-27T09:48:06.000000Z",
- "modified_time": "2022-06-27T09:48:06.000000Z",
- "modified_user_time": "2022-06-27T09:48:06.000000Z",
- "programs_count": 1,
- "model": "Schedule",
- "created_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}, - "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}
}, - {
- "id": 67,
- "hash": "ac9d603a447be33f033a1205b5dd4d437f12c79c",
- "name": "Schedule",
- "start_time_tolerance_yellow": 3,
- "start_time_tolerance_red": 7,
- "start_time_tolerance_started": 7,
- "start_time_score_green": 3,
- "start_time_score_yellow": 1,
- "start_time_score_red": 0,
- "start_time_threshold_yellow": 90,
- "start_time_threshold_red": 65,
- "end_time_tolerance_yellow": 3,
- "end_time_tolerance_red": 7,
- "end_time_tolerance_finished": 7,
- "end_time_score_green": 3,
- "end_time_score_yellow": 1,
- "end_time_score_red": 0,
- "end_time_threshold_yellow": 90,
- "end_time_threshold_red": 65,
- "created_time": "2022-07-15T13:19:42.000000Z",
- "modified_time": "2022-07-15T13:19:42.000000Z",
- "modified_user_time": "2022-07-15T13:19:42.000000Z",
- "programs_count": 0,
- "model": "Schedule",
- "created_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}, - "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}
}
], - "meta": {
- "page": 1,
- "first": 1,
- "last": 2,
- "total": 2,
- "limit": 1000,
- "pages": 1
}, - "timestamp": 1657893664305
}
{- "success": true,
- "hash": "fb35225599e2db01ecf7b627d79de02f50012156",
- "data": {
- "id": 67,
- "hash": "ac9d603a447be33f033a1205b5dd4d437f12c79c",
- "name": "Schedule",
- "start_time_tolerance_yellow": 3,
- "start_time_tolerance_red": 7,
- "start_time_tolerance_started": 7,
- "start_time_score_green": 3,
- "start_time_score_yellow": 1,
- "start_time_score_red": 0,
- "start_time_threshold_yellow": 90,
- "start_time_threshold_red": 65,
- "end_time_tolerance_yellow": 3,
- "end_time_tolerance_red": 7,
- "end_time_tolerance_finished": 7,
- "end_time_score_green": 3,
- "end_time_score_yellow": 1,
- "end_time_score_red": 0,
- "end_time_threshold_yellow": 90,
- "end_time_threshold_red": 65,
- "created_time": "2022-07-15T13:19:42.000000Z",
- "modified_time": "2022-07-15T13:19:42.000000Z",
- "modified_user_time": "2022-07-15T13:19:42.000000Z",
- "programs_count": 0,
- "model": "Schedule",
- "created_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}, - "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}
}, - "timestamp": 1657895194580
}
Update a schedule.
A JSON object containing schedule information.
Successful operation
Not Found
Unprocessable Content
{- "name": "Schedule for Airborne",
- "start_time_tolerance_yellow": 2,
- "start_time_tolerance_red": 5,
- "start_time_tolerance_started": 5,
- "end_time_threshold_yellow": 95,
- "end_time_threshold_red": 85
}
{- "success": true,
- "hash": "44b86a23a2bd02409597b2ddc32f0b6d64081845",
- "data": {
- "id": 67,
- "hash": "ac9d603a447be33f033a1205b5dd4d437f12c79c",
- "name": "Schedule for Airborne",
- "start_time_tolerance_yellow": 2,
- "start_time_tolerance_red": 5,
- "start_time_tolerance_started": 5,
- "start_time_score_green": 3,
- "start_time_score_yellow": 1,
- "start_time_score_red": 0,
- "start_time_threshold_yellow": 90,
- "start_time_threshold_red": 65,
- "end_time_tolerance_yellow": 3,
- "end_time_tolerance_red": 7,
- "end_time_tolerance_finished": 7,
- "end_time_score_green": 3,
- "end_time_score_yellow": 1,
- "end_time_score_red": 0,
- "end_time_threshold_yellow": 95,
- "end_time_threshold_red": 85,
- "created_time": "2022-07-15T13:19:42.000000Z",
- "modified_time": "2022-07-15T14:35:12.000000Z",
- "modified_user_time": "2022-07-15T14:35:12.000000Z",
- "model": "Schedule",
- "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}
}, - "timestamp": 1657895712073
}
Delete a schedule.
Only schedules without assigned programs can be deleted. You will get a 403 Forbidden
response if you try to delete a schedule with assigned programs.
Successful operation
Not Found
{- "success": true,
- "hash": "8739602554c7f3241958e3cc9b57fdecb474d508",
- "data": { },
- "timestamp": 1657896117950
}
Copy a schedule within the authenticated hub.
Successful operation
Not Found
{- "success": true,
- "hash": "8739602554c7f3241958e3cc9b57fdecb474d508",
- "data": { },
- "timestamp": 1657896446432
}