Create a new workflow.
A JSON object containing workflow information.
Successful operation
Unprocessable Content
{- "name": "Workflow",
- "start_time_tolerance_yellow": 3,
- "start_time_tolerance_red": 7
}
{- "success": true,
- "hash": "f140676b990eaa35bfa144a106dd71ce8db5b092",
- "data": {
- "id": 72,
- "hash": "d016f0cee35b7dddc5b6691de4c4c083a96e6beb",
- "name": "Workflow",
- "start_time_tolerance_yellow": 3,
- "start_time_tolerance_red": 7,
- "start_time_tolerance_started": 7,
- "created_time": "2022-07-18T13:16:31.000000Z",
- "modified_time": "2022-07-18T13:16:31.000000Z",
- "modified_user_time": "2022-07-18T13:16:31.000000Z",
- "model": "Workflow",
- "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": 1658150191119
}
Get all workflows of the authenticated hub.
Successful operation
{- "success": true,
- "hash": "d735a4320167032e5609b5fdd4d9d2b8a0319f44",
- "data": [
- {
- "id": 1,
- "hash": "36324e5b988caef7338b14f841f922956d433c17",
- "name": "Airborne (Default)",
- "start_time_tolerance_yellow": 3,
- "start_time_tolerance_red": 7,
- "start_time_tolerance_started": 7,
- "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": "Workflow",
- "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": 72,
- "hash": "d016f0cee35b7dddc5b6691de4c4c083a96e6beb",
- "name": "Workflow",
- "start_time_tolerance_yellow": 3,
- "start_time_tolerance_red": 7,
- "start_time_tolerance_started": 7,
- "created_time": "2022-07-18T13:16:31.000000Z",
- "modified_time": "2022-07-18T13:16:31.000000Z",
- "modified_user_time": "2022-07-18T13:16:31.000000Z",
- "programs_count": 0,
- "model": "Workflow",
- "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": 1658150593104
}
{- "success": true,
- "hash": "f140676b990eaa35bfa144a106dd71ce8db5b092",
- "data": {
- "id": 72,
- "hash": "d016f0cee35b7dddc5b6691de4c4c083a96e6beb",
- "name": "Workflow",
- "start_time_tolerance_yellow": 3,
- "start_time_tolerance_red": 7,
- "start_time_tolerance_started": 7,
- "created_time": "2022-07-18T13:16:31.000000Z",
- "modified_time": "2022-07-18T13:16:31.000000Z",
- "modified_user_time": "2022-07-18T13:16:31.000000Z",
- "programs_count": 0,
- "model": "Workflow",
- "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": 1658151064975
}
Update a workflow.
A JSON object containing workflow information.
Successful operation
Not Found
Unprocessable Content
{- "name": "Workflow for Airborne",
- "start_time_tolerance_yellow": 2,
- "start_time_tolerance_red": 5,
- "start_time_tolerance_started": 5
}
{- "success": true,
- "hash": "8f4ce1298420da1d0b0dc299b0a3ebd32810c583",
- "data": {
- "id": 72,
- "hash": "d016f0cee35b7dddc5b6691de4c4c083a96e6beb",
- "name": "Workflow for Airborne",
- "start_time_tolerance_yellow": 2,
- "start_time_tolerance_red": 5,
- "start_time_tolerance_started": 5,
- "created_time": "2022-07-18T13:16:31.000000Z",
- "modified_time": "2022-07-18T13:37:22.000000Z",
- "modified_user_time": "2022-07-18T13:37:22.000000Z",
- "model": "Workflow",
- "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": 1658151442035
}
Delete a workflow.
Only workflows without assigned programs can be deleted. You will get a 403 Forbidden
response if you try to delete a workflow with assigned programs.
Successful operation
Not Found
{- "success": true,
- "hash": "8739602554c7f3241958e3cc9b57fdecb474d508",
- "data": { },
- "timestamp": 1658151867173
}
Copy a workflow within the authenticated hub.
Successful operation
Not Found
{- "success": true,
- "hash": "8739602554c7f3241958e3cc9b57fdecb474d508",
- "data": { },
- "timestamp": 1658152791402
}
Restore a workflow and all elements that have been deleted with the workflow.
Successful operation
Not Found
{- "success": true,
- "hash": "8739602554c7f3241958e3cc9b57fdecb474d508",
- "data": { },
- "timestamp": 1658152742436
}