{"info":{"_postman_id":"1432bb55-9b86-4222-8389-63a4eba9cd2b","name":"Diksha_Reports_Portal_HawkEye_API's","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"23635349","collectionId":"1432bb55-9b86-4222-8389-63a4eba9cd2b","publishedId":"2s9Y5Qzker","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-08-16T12:45:15.000Z"},"item":[{"name":"list reports","id":"d1867af6-9d33-4ed4-8c27-07ed5cc16ec3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{he_api_key}}","type":"text"},{"key":"x-authenticated-user-token","value":"{{Access_Token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"request\": {\n        \"filters\": {}\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/api/data/v1/report-service/report/list","urlObject":{"path":["api","data","v1","report-service","report","list"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d1867af6-9d33-4ed4-8c27-07ed5cc16ec3"},{"name":"fetch report by id","id":"733b6071-91f9-45a5-95c2-0c03b9dd71aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{he_api_key}}"},{"key":"x-authenticated-user-token","value":"{{Access_Token}}"}],"url":"{{host}}/api/data/v1/report-service/report/get/{Report_ID}","urlObject":{"path":["api","data","v1","report-service","report","get","{Report_ID}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"733b6071-91f9-45a5-95c2-0c03b9dd71aa"},{"name":"retire report by id","id":"62ccd501-6651-4fd1-9479-1ed3a3d81a68","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer {{he_api_key}}"}],"url":"{{host}}/api/data/v1/report-service/report/retire/(Report_ID}","urlObject":{"path":["api","data","v1","report-service","report","retire","(Report_ID}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"62ccd501-6651-4fd1-9479-1ed3a3d81a68"},{"name":"create report","id":"75679899-5b2e-4ab1-86e0-2916d698f8fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{he_api_key}}"},{"key":"x-authenticated-user-token","value":"{{Access_Token}}"}],"body":{"mode":"raw","raw":"{\n    \"request\": {\n        \"report\": {\n            \"title\": \"Report_Name\",\n            \"description\": \"Report_description\",\n            \"authorizedroles\": [\n                \"REPORT_ADMIN\",\n                \"REPORT_VIEWER\"\n            ],\n            \"status\": \"draft\",\n            \"type\": \"public\",\n            \"createdby\": \"$createdby\",\n            \"reportconfig\": {\n                \"label\": \"Report_Name\",\n                \"title\": \"Report_Name\",\n                \"charts\": [\n                    {\n                        \"id\": \"Big_Number\",\n                        \"bigNumbers\": [\n                            {\n                                \"footer\": \" \",\n                                \"header\": \"No. of surveys in started status currently\",\n                                \"dataExpr\": \"No of surveys in started status currently\"\n                            },\n                            {\n                                \"footer\": \" \",\n                                \"header\": \"No. of surveys submitted till date\",\n                                \"dataExpr\": \"No of surveys submitted till date\"\n                            }\n                        ],\n                        \"dataSource\": {\n                            \"ids\": [\n                                \"ml_no_of_surveys_in_started_status_currently_sl\",\n                                \"ml_no_of_surveys_submitted_till_date_sl\"\n                            ],\n                            \"commonDimension\": \"Date\"\n                        }\n                    }\n                ],\n                \"filters\": [\n                    {\n                        \"reference\": \"State Name\",\n                        \"controlType\": \"multi-select\",\n                        \"displayName\": \"State\"\n                    },\n                    {\n                        \"reference\": \"Program Name\",\n                        \"controlType\": \"multi-select\",\n                        \"displayName\": \"Program\"\n                    },\n                    {\n                        \"reference\": \"District Name\",\n                        \"controlType\": \"multi-select\",\n                        \"displayName\": \"District\"\n                    },\n                    {\n                        \"reference\": \"Block name\",\n                        \"dependency\": {\n                            \"reference\": \"District Name\",\n                            \"displayName\": \"district\"\n                        },\n                        \"controlType\": \"multi-select\",\n                        \"displayName\": \"Block\"\n                    }\n                ],\n                \"dataSource\": [\n                    {\n                        \"id\": \"ml_no_of_surveys_in_started_status_currently_sl\",\n                        \"path\": \"/reports/fetch/hawk-eye/ml_no_of_surveys_in_started_status_currently_sl.json\"\n                    },\n                    {\n                        \"id\": \"ml_no_of_surveys_submitted_till_date_sl\",\n                        \"path\": \"/reports/fetch/hawk-eye/ml_no_of_surveys_submitted_till_date_sl.json\"\n                    }\n                ],\n                \"description\": \"Report_description\",\n                \"downloadUrl\": \"\"\n            },\n            \"slug\": \"hawk-eye\",\n            \"reportgenerateddate\": \"2023-05-05T00:00:00.000Z\",\n            \"reportduration\": {\n                \"enddate\": \"12-02-2020\",\n                \"startdate\": \"12-02-2020\"\n            },\n            \"tags\": [\n                \"Report_Name\"\n            ],\n            \"updatefrequency\": \"DAILY\",\n            \"parameters\": [\n                \"$slug\"\n            ],\n            \"report_type\": \"report\"\n        }\n    }\n}"},"url":"{{host}}/api/data/v1/report-service/report/create","urlObject":{"path":["api","data","v1","report-service","report","create"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"75679899-5b2e-4ab1-86e0-2916d698f8fe"},{"name":"delete report","id":"21da89cb-7366-4313-a6f4-396199a4f9e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {Bearer_Token}"},{"key":"x-authenticated-user-token","value":"{{Access_Token}}"}],"url":"{{host}}/api/data/v1/report-service/report/delete/{Report_ID}","urlObject":{"path":["api","data","v1","report-service","report","delete","{Report_ID}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"21da89cb-7366-4313-a6f4-396199a4f9e5"},{"name":"update report by id ","id":"0ace88bf-c679-4cb7-897e-cc05d68eac4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer {{he_api_key}}"},{"key":"x-authenticated-user-token","value":"{{Access_Token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"request\": {\n        \"report\": {\n            \"title\": \"Report_Updated_Name\",\n            \"description\": \"Report_description\",\n            \"authorizedroles\": [\n                \"REPORT_ADMIN\",\n                \"REPORT_VIEWER\"\n            ],\n            \"status\": \"draft\",\n            \"type\": \"public\",\n            \"createdby\": \"$createdby\",\n            \"reportconfig\": {\n                \"label\": \"Report_Updated_Name\",\n                \"title\": \"Report_Updated_Name\",\n                \"charts\": [\n                    {\n                        \"id\": \"Big_Number\",\n                        \"bigNumbers\": [\n                            {\n                                \"footer\": \" \",\n                                \"header\": \"No. of surveys in started status currently\",\n                                \"dataExpr\": \"No of surveys in started status currently\"\n                            },\n                            {\n                                \"footer\": \" \",\n                                \"header\": \"No. of surveys submitted till date\",\n                                \"dataExpr\": \"No of surveys submitted till date\"\n                            }\n                        ],\n                        \"dataSource\": {\n                            \"ids\": [\n                                \"ml_no_of_surveys_in_started_status_currently_sl\",\n                                \"ml_no_of_surveys_submitted_till_date_sl\"\n                            ],\n                            \"commonDimension\": \"Date\"\n                        }\n                    }\n                ],\n                \"filters\": [\n                    {\n                        \"reference\": \"State Name\",\n                        \"controlType\": \"multi-select\",\n                        \"displayName\": \"State\"\n                    },\n                    {\n                        \"reference\": \"Program Name\",\n                        \"controlType\": \"multi-select\",\n                        \"displayName\": \"Program\"\n                    },\n                    {\n                        \"reference\": \"District Name\",\n                        \"controlType\": \"multi-select\",\n                        \"displayName\": \"District\"\n                    },\n                    {\n                        \"reference\": \"Block name\",\n                        \"dependency\": {\n                            \"reference\": \"District Name\",\n                            \"displayName\": \"district\"\n                        },\n                        \"controlType\": \"multi-select\",\n                        \"displayName\": \"Block\"\n                    }\n                ],\n                \"dataSource\": [\n                    {\n                        \"id\": \"ml_no_of_surveys_in_started_status_currently_sl\",\n                        \"path\": \"/reports/fetch/hawk-eye/ml_no_of_surveys_in_started_status_currently_sl.json\"\n                    },\n                    {\n                        \"id\": \"ml_no_of_surveys_submitted_till_date_sl\",\n                        \"path\": \"/reports/fetch/hawk-eye/ml_no_of_surveys_submitted_till_date_sl.json\"\n                    }\n                ],\n                \"description\": \"Report_description\",\n                \"downloadUrl\": \"\"\n            },\n            \"slug\": \"hawk-eye\",\n            \"reportgenerateddate\": \"2023-05-05T00:00:00.000Z\",\n            \"reportduration\": {\n                \"enddate\": \"12-02-2020\",\n                \"startdate\": \"12-02-2020\"\n            },\n            \"tags\": [\n                \"Report_Updated_Name\"\n            ],\n            \"updatefrequency\": \"DAILY\",\n            \"parameters\": [\n                \"$slug\"\n            ],\n            \"report_type\": \"report\"\n        }\n    }\n}"},"url":"{{host}}/api/data/v1/report-service/report/update/{Report_ID}","urlObject":{"path":["api","data","v1","report-service","report","update","{Report_ID}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0ace88bf-c679-4cb7-897e-cc05d68eac4f"}]}