Create a new workflow phase for a workflow.
A JSON object containing workflow phase information.
Successful operation
Unprocessable Content
{- "name": "DOI3",
- "summary": "Measure completed",
- "umask": 3,
- "workflow": "d016f0cee35b7dddc5b6691de4c4c083a96e6beb"
}
{- "success": true,
- "hash": "dbfd5edba7afabc8e62562a32bb1e1d28ceaa426",
- "data": {
- "id": 358,
- "hash": "b87faab4aa5313a79fbdb0ab24f6b21c22c60095",
- "position": 3,
- "name": "DOI3",
- "summary": "Measure completed",
- "umask": 3,
- "created_time": "2022-07-18T15:00:05.000000Z",
- "modified_time": "2022-07-18T15:00:05.000000Z",
- "modified_user_time": "2022-07-18T15:00:05.000000Z",
- "model": "WorkflowPhase",
- "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": 1658156405332
}
Get all workflow phases of the authenticated hub.
Successful operation
Unprocessable Content
{- "success": true,
- "hash": "a06322127ccc12deb6cdfdec3b59b47a4acbe587",
- "data": [
- {
- "id": 356,
- "hash": "599feaf7e046a5370cc916b39eb2f33d4eadaf4b",
- "position": 1,
- "name": "DOI1",
- "summary": "Potential identified",
- "umask": 2,
- "created_time": "2022-07-18T14:53:40.000000Z",
- "modified_time": "2022-07-18T14:58:50.000000Z",
- "modified_user_time": "2022-07-18T14:58:50.000000Z",
- "model": "WorkflowPhase",
- "workflow": {
- "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"
}
}, - {
- "id": 357,
- "hash": "9b554a47b53454364e8d926cd3d963e36583b3db",
- "position": 2,
- "name": "DOI2",
- "summary": "Evaluated and in implementation",
- "umask": 2,
- "created_time": "2022-07-18T14:58:50.000000Z",
- "modified_time": "2022-07-18T14:59:39.000000Z",
- "modified_user_time": "2022-07-18T14:59:39.000000Z",
- "workflow": {
- "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"
}
}, - {
- "id": 358,
- "hash": "b87faab4aa5313a79fbdb0ab24f6b21c22c60095",
- "position": 3,
- "name": "DOI3",
- "summary": "Measure completed",
- "umask": 3,
- "created_time": "2022-07-18T15:00:05.000000Z",
- "modified_time": "2022-07-18T15:00:05.000000Z",
- "modified_user_time": "2022-07-18T15:00:05.000000Z",
- "model": "WorkflowPhase",
- "workflow": {
- "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"
}
}
], - "meta": {
- "page": 1,
- "first": 1,
- "last": 3,
- "total": 3,
- "limit": 1000,
- "pages": 1
}, - "timestamp": 1658156900607
}
Get a workflow phase.
Successful operation
Not Found
{- "success": true,
- "hash": "dbfd5edba7afabc8e62562a32bb1e1d28ceaa426",
- "data": {
- "id": 358,
- "hash": "b87faab4aa5313a79fbdb0ab24f6b21c22c60095",
- "position": 3,
- "name": "DOI3",
- "summary": "Measure completed",
- "umask": 3,
- "created_time": "2022-07-18T15:00:05.000000Z",
- "modified_time": "2022-07-18T15:00:05.000000Z",
- "modified_user_time": "2022-07-18T15:00:05.000000Z",
- "model": "WorkflowPhase",
- "workflow": {
- "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": 1658157826082
}
Update a workflow phase.
A JSON object containing workflow phase information.
Successful operation
Not Found
Unprocessable Content
{- "summary": "Effects realized",
- "umask": 2
}
{- "success": true,
- "hash": "9bf52111e9df63d132aadf79300354ebb8fafc4c",
- "data": {
- "id": 358,
- "hash": "b87faab4aa5313a79fbdb0ab24f6b21c22c60095",
- "position": 3,
- "name": "DOI3",
- "summary": "Effects realized",
- "umask": 2,
- "created_time": "2022-07-18T15:00:05.000000Z",
- "modified_time": "2022-07-18T15:33:02.000000Z",
- "modified_user_time": "2022-07-18T15:33:02.000000Z",
- "model": "WorkflowPhase",
- "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": 1658158382366
}
Delete a workflow phase.
Successful operation
Not Found
{- "success": true,
- "hash": "8739602554c7f3241958e3cc9b57fdecb474d508",
- "data": { },
- "timestamp": 1658158631530
}
Position a workflow phase in relation to another workflow phase.
A JSON object containing workflow phase information.
Successful operation
Not Found
Unprocessable Content
{- "position": "before",
- "workflow_phase": 358
}
{- "success": true,
- "hash": "306a42e4ddf342cff5469327e3e905c5cd1e104d",
- "data": {
- "id": 356,
- "hash": "599feaf7e046a5370cc916b39eb2f33d4eadaf4b",
- "position": 3,
- "name": "DOI1",
- "summary": "Potential identified",
- "umask": 2,
- "created_time": "2022-07-18T14:53:40.000000Z",
- "modified_time": "2022-07-18T15:56:44.000000Z",
- "modified_user_time": "2022-07-18T15:56:44.000000Z",
- "model": "WorkflowPhase",
- "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": 1658159804838
}
Restore a workflow phase.
Successful operation
Not Found
{- "success": true,
- "hash": "8739602554c7f3241958e3cc9b57fdecb474d508",
- "data": { },
- "timestamp": 1658160200126
}