Approval Workflow List

URL : v3/api/admin/approval-workflow Method : GET Parameters: Parameter Type Optional/Required Description limit integer Optional Records per page page integer Optional Page number sort_by string Optional Order by column. Valid inputs: name, created_at and updated_at order string Optional Order of sorting. Valid inputs: asc & desc search string Optional Search string restricted boolean Optional To restrict […]

Read More

Approval Workflow Show

URL : v3/api/admin/approval-workflow/{id} Method : GET Segment: Parameter Type Optional/Required Description id Integer Required Approval workflow id.   Parameters: none Response: { “success”: true, “data”: {     “id”: 52,     “name”: “Omnis iure minima fugiat qui odit eligendi sit quo.”,     “user_id”: 173,     “levels”: [{         “id”: 52,         “name”: “Level 1”,         “match”: […]

Read More

Approval Workflow Store / Update

URL : v3/api/admin/approval-workflow Method : POST Parameters: Parameter Type Optional/Required Description id Integer Optional Approval workflow id. Required for update. Id integer 0 indicates create operation. name string Required Approval workflow name. Max 255 char. Unique. levels array Required Approval workflow levels. Must be an associative array with level data.   Levels: Parameter Type Optional/Required […]

Read More

Approval Workflow Delete

URL : v3/api/admin/approval-workflow/{id}/{type} Method : DELETE Segment: Parameter Type Optional/Required Description id Integer Required Approval workflow id / Level id type string Required Deletion type workflow / level   Parameters: none Response: { “success”: true, “message”: “Approval workflow removed” } or { “success”: true, “message”: “Workflow level removed” }  

Read More

Get Approval Workflow Status

URL: v3/api/ticket-approval-status/{ticket-id} Method: GET Description : Gets the details of all the approval workflow applied to the ticket and their current status Success Response: { “success”: true,   “data”: [     {      “id”: 224      “approval_workflow_id”: “194”,      “name”: “test_workflow”,      “ticket_id”: 417,      “created_at”: “2018-10-11 10:01:55”,      “updated_at”: “2018-10-11 10:01:55”,      “approval_levels”: [ {          “id”: 486          “status”: “PENDING”,          “is_active”: 1, […]

Read More