{"info":{"_postman_id":"a201cdc6-f41e-4aff-8467-0cd682c5e098","name":"AMS api","description":"<html><head></head><body><p>Asset Management System's Api 's are divided as:</p>\n<ol>\n<li><p>Dashboard Apis</p>\n</li>\n<li><p>Assets Apis</p>\n</li>\n<li><p>Employee Apis</p>\n</li>\n<li><p>Reports Apis</p>\n</li>\n<li><p>Vendor Apis</p>\n</li>\n<li><p>Category Apis</p>\n</li>\n<li><p>Department Apis</p>\n</li>\n</ol>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"55948879","collectionId":"a201cdc6-f41e-4aff-8467-0cd682c5e098","publishedId":"2sBXwvKU9z","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-06-21T11:00:12.000Z"},"item":[{"name":"Dashboard Apis","item":[{"name":"Dashboard Data","id":"6db6b731-292b-40db-b802-a3947e99e168","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"GET","header":[],"url":"localhost:5000/api/dashboard","description":"<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"stats\":{\"totalAssets\":15,\"assignedAssets\":6,\"availableAssets\":4,\"underMaintenance\":3,\"disposedAssets\":2},\"assetsByCategory\":{\"Air Conditioners\":2,\"Biometric Device\":1,\"Furniture\":3,\"Laptop\":3,\"Monitors\":1,\"Network Switches\":1,\"Printer\":2,\"Projector\":1,\"UPS\":1},\"assetStatusPercentages\":{\"assigned\":40,\"available\":26.67,\"underMaintenance\":20,\"disposed\":13.33},\"recentAssets\":[{\"assetId\":\"AST-1782142260658-974\",\"assetName\":\"Biometric Device - 01\",\"categoryName\":\"Biometric Device\",\"department\":{\"_id\":\"6a3a2173147cf248d9af14de\",\"deptName\":\"Engineering &amp; Construction\",\"deptIncharge\":\"Aditya\"},\"serialNumber\":\"ESSLK30-66578\",\"status\":\"Available\",\"assignedTo\":null},{\"assetId\":\"AST-1782142221313-719\",\"assetName\":\"Network Switch - 01\",\"categoryName\":\"Network Switches\",\"department\":{\"_id\":\"6a3a2173147cf248d9af14de\",\"deptName\":\"Engineering &amp; Construction\",\"deptIncharge\":\"Aditya\"},\"serialNumber\":\"TPL1024-33421\",\"status\":\"Available\",\"assignedTo\":null},{\"assetId\":\"AST-1782142185871-860\",\"assetName\":\"UPS - 01\",\"categoryName\":\"UPS\",\"department\":{\"_id\":\"6a3a2173147cf248d9af14de\",\"deptName\":\"Engineering &amp; Construction\",\"deptIncharge\":\"Aditya\"},\"serialNumber\":\"APC1100-91245\",\"status\":\"Assigned\",\"assignedTo\":{\"name\":\"Bijayeene\",\"empId\":\"E500\"}},{\"assetId\":\"AST-1782142151143-4\",\"assetName\":\"Projector - 01\",\"categoryName\":\"Projector\",\"department\":{\"_id\":\"6a3a2173147cf248d9af14de\",\"deptName\":\"Engineering &amp; Construction\",\"deptIncharge\":\"Aditya\"},\"serialNumber\":\"EBE01-78234\",\"status\":\"Available\",\"assignedTo\":null},{\"assetId\":\"AST-1782141941368-685\",\"assetName\":\"Monitor - 01\",\"categoryName\":\"Monitors\",\"department\":{\"_id\":\"6a3a2173147cf248d9af14de\",\"deptName\":\"Engineering &amp; Construction\",\"deptIncharge\":\"Aditya\"},\"serialNumber\":\"DLP2422-45871\",\"status\":\"Assigned\",\"assignedTo\":{\"name\":\"Aditya Sahoo\",\"empId\":\"E100\"}}],\"recentActivity\":[{\"assetName\":\"Network Switch - 01\",\"model\":\"TP-Link TL-SG1024D\",\"assetId\":\"AST-1782142221313-719\",\"status\":\"returned\",\"assignedTo\":{\"employeeName\":\"Nitin\",\"empId\":\"E400\",\"_id\":\"6a394ffa9c9c66a62b9cfc87\"},\"createdAt\":\"2026-06-23T07:53:48.152Z\"},{\"assetName\":\"Biometric Device - 01\",\"model\":\"eSSL K30 Pro\",\"assetId\":\"AST-1782142260658-974\",\"status\":\"returned\",\"assignedTo\":{\"employeeName\":\"Ipshika\",\"empId\":\"E600\",\"_id\":\"6a3950f39c9c66a62b9cfc89\"},\"createdAt\":\"2026-06-23T07:48:23.177Z\"},{\"assetName\":\"Air Conditioner - 01\",\"model\":\"LG DualCool 1.5T\",\"assetId\":\"AST-1782141508266-146\",\"status\":\"disposed\",\"assignedTo\":{\"employeeName\":\"Ashutosh\",\"empId\":\"E300\",\"_id\":\"6a394fd19c9c66a62b9cfc86\"},\"createdAt\":\"2026-06-23T07:21:00.953Z\"},{\"assetName\":\"Filing Cabinet - 01\",\"model\":\"SteelSafe FC4\",\"assetId\":\"AST-1782141453322-92\",\"status\":\"disposed\",\"assignedTo\":{\"employeeName\":\"Bijayeene\",\"empId\":\"E500\",\"_id\":\"6a39504d9c9c66a62b9cfc88\"},\"createdAt\":\"2026-06-23T07:19:44.307Z\"},{\"assetName\":\"Network Switch - 01\",\"model\":\"TP-Link TL-SG1024D\",\"assetId\":\"AST-1782142221313-719\",\"status\":\"maintenance_completed\",\"assignedTo\":{\"employeeName\":\"Nitin\",\"empId\":\"E400\",\"_id\":\"6a394ffa9c9c66a62b9cfc87\"},\"createdAt\":\"2026-06-22T15:39:55.278Z\"}]}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","dashboard"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"6db6b731-292b-40db-b802-a3947e99e168"},{"name":"Dashboard Warranty Alerts","id":"67305ff7-4836-483e-a0d7-48efa72595af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"GET","header":[],"url":"localhost:5000/api/dashboard/warranty-alerts","description":"<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"expiringCount\":1,\"expiredCount\":1,\"expiringAssets\":[{\"_id\":\"6a3282477c8f07f18955bba4\",\"assetId\":\"AST-1781695047933-63\",\"assetName\":\"Laptop 2001\",\"warrantyExpiry\":\"2026-07-16T00:00:00.000Z\",\"daysLeft\":26}],\"expiredAssets\":[{\"_id\":\"6a32833283b10213e747723f\",\"assetId\":\"AST-1781695282656-538\",\"assetName\":\"Laptop 3001\",\"warrantyExpiry\":\"2025-06-16T00:00:00.000Z\",\"expiredDays\":370}]}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","dashboard","warranty-alerts"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"67305ff7-4836-483e-a0d7-48efa72595af"}],"id":"84bf6cbd-dd2e-4dbd-8324-60de6e0ba9fc","description":"<ol>\n<li><p>GET - Dashboard Data</p>\n</li>\n<li><p>GET - Dashboard Warranty Alerts</p>\n</li>\n</ol>\n","_postman_id":"84bf6cbd-dd2e-4dbd-8324-60de6e0ba9fc"},{"name":"Assets Apis","item":[{"name":"Create Asset","id":"56b7ab3e-4f6b-421a-91fb-b0cb3fcb9cfa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"assetName","value":"Laptop 2001","type":"text","id":0},{"key":"category","value":"6a313e67beed4ea2d87b14f8","type":"text","id":1},{"key":"vendor","value":"6a313dcdbeed4ea2d87b14f6","type":"text","id":2},{"key":"model","value":"Victus","type":"text","id":3},{"key":"serialNumber","value":"300","type":"text","id":4},{"key":"purchaseDate","value":"2026-06-16","type":"text","id":5},{"key":"purchaseCost","value":"60000","type":"text","id":6},{"key":"warrantyExpiry","value":"2027-06-16","type":"text","id":7},{"key":"additionalNotes","value":"test laptop","type":"text","id":8},{"key":"assetImage","type":"file","id":9,"fileUploadError":"","src":["c:\\Users\\ADITYA\\Downloads\\teaching.png"]},{"key":"department","value":"6a3a2173147cf248d9af14de","type":"text","id":10}]},"url":"localhost:5000/api/assets","description":"<h2 id=\"input\">Input:</h2>\n<p>Pass Object Id in Vendors &amp; Category, and Other Fields from Form Data.</p>\n<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"message\":\"Asset created successfully\"}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","assets"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"56b7ab3e-4f6b-421a-91fb-b0cb3fcb9cfa"},{"name":"Get All Assets","id":"a01d1cb3-6514-4102-b9c7-17010794cfe7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"GET","header":[],"url":"localhost:5000/api/assets/","description":"<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"count\":3,\"totalCount\":3,\"assets\":[{\"_id\":\"6a32834483b10213e7477240\",\"assetId\":\"AST-1781695300757-225\",\"assetName\":\"Laptop 4001\",\"categoryName\":\"Laptop\",\"serialNumber\":\"500\",\"model\":\"Victus\",\"assignedTo\":null},{\"_id\":\"6a32833283b10213e747723f\",\"assetId\":\"AST-1781695282656-538\",\"assetName\":\"Laptop 3001\",\"categoryName\":\"Laptop\",\"serialNumber\":\"400\",\"model\":\"Victus\",\"assignedTo\":{\"_id\":\"6a339bcce672a5167a29c069\",\"empId\":\"E100\",\"name\":\"Aditya\"}},{\"_id\":\"6a3282477c8f07f18955bba4\",\"assetId\":\"AST-1781695047933-63\",\"assetName\":\"Laptop 2001\",\"categoryName\":\"Laptop\",\"serialNumber\":\"300\",\"model\":\"Victus\",\"assignedTo\":{\"_id\":\"6a339bcce672a5167a29c069\",\"empId\":\"E100\",\"name\":\"Aditya\"}}],\"categories\":[{\"_id\":\"6a313e67beed4ea2d87b14f8\",\"categoryName\":\"Laptop\",\"description\":\"all laptops\"}],\"status\":[\"Available\",\"Assigned\",\"Maintenance\",\"Return Requested\",\"Maintenance Requested\"],\"vendors\":[{\"_id\":\"6a313dcdbeed4ea2d87b14f6\",\"vendorName\":\"Dell\",\"contactPerson\":\"Aditya\",\"email\":\"aditya@gmail.com\",\"phone\":\"9999999999\",\"address\":\"bbsr\"},{\"_id\":\"6a351aee28b428971c5a1294\",\"vendorName\":\"HP\",\"contactPerson\":\"dibya\",\"email\":\"dibya@gmail.com\",\"phone\":\"1212121212\",\"address\":\"bbsr\",\"createdAt\":\"2026-06-19T10:33:18.098Z\",\"updatedAt\":\"2026-06-19T10:33:18.098Z\",\"__v\":0}]}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","assets",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a01d1cb3-6514-4102-b9c7-17010794cfe7"},{"name":"Get Asset QR","id":"80d7c852-4cb0-4a18-b76a-39d68a6d2539","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"GET","header":[],"url":"localhost:5000/api/assets/qr/AST-1782033510237-311","description":"<h2 id=\"input\">Input:</h2>\n<p><b>API</b><strong>:</strong> <code>localhost:5000/api/assets/assetId</code></p>\n<p><b>Url Params:</b> <code>assetId of the Asset</code> (asset.assetId)</p>\n<p>eg: <code>localhost:5000/api/assets/qr/AST-1782033510237-311</code></p>\n","urlObject":{"port":"5000","path":["api","assets","qr","AST-1782033510237-311"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"80d7c852-4cb0-4a18-b76a-39d68a6d2539"},{"name":"Get Asset by Id","id":"9878dc1d-6b51-470f-97af-a13bcc764ad3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"GET","header":[],"url":"localhost:5000/api/assets/6a3282477c8f07f18955bba4","description":"<h2 id=\"input\">Input:</h2>\n<p><b>API</b><strong>:</strong> <code>localhost:5000/api/assets/asset_object_id</code></p>\n<p><b>Url Params:</b> <code>asset_object_id</code> (asset._id)</p>\n<p>eg: <code>localhost:5000/api/assets/6a3282477c8f07f18955bba4</code></p>\n<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"asset\":{\"_id\":\"6a3282477c8f07f18955bba4\",\"assetName\":\"Laptop 2001\",\"category\":\"Laptop\",\"vendor\":{\"vendorName\":\"Dell\",\"phone\":\"9999999999\"},\"model\":\"Victus\",\"serialNumber\":\"300\",\"purchaseDate\":\"2026-06-16T00:00:00.000Z\",\"purchaseCost\":60000,\"warrantyExpiry\":\"2026-07-16T00:00:00.000Z\",\"additionalNotes\":\"test laptop\",\"status\":\"Assigned\",\"assignedTo\":{\"_id\":\"6a339bcce672a5167a29c069\",\"empId\":\"E100\",\"name\":\"Aditya\",\"phone\":\"1111111111\",\"dept\":\"engineering\"},\"assignedDate\":\"2026-06-19T15:30:44.349Z\",\"assetId\":\"AST-1781695047933-63\",\"createdAt\":\"2026-06-17T11:17:27.933Z\",\"updatedAt\":\"2026-06-19T15:34:51.463Z\",\"__v\":0},\"assignedHistory\":[{\"employee\":{\"_id\":\"6a339bcce672a5167a29c069\",\"empId\":\"E100\",\"name\":\"Aditya\",\"phone\":\"1111111111\",\"dept\":\"engineering\"},\"actionDate\":\"2026-06-18T12:44:39.244Z\",\"status\":\"assigned\"},{\"employee\":{\"_id\":\"6a339bcce672a5167a29c069\",\"empId\":\"E100\",\"name\":\"Aditya\",\"phone\":\"1111111111\",\"dept\":\"engineering\"},\"actionDate\":\"2026-06-19T15:25:21.277Z\",\"status\":\"returned\"},{\"employee\":{\"_id\":\"6a339bcce672a5167a29c069\",\"empId\":\"E100\",\"name\":\"Aditya\",\"phone\":\"1111111111\",\"dept\":\"engineering\"},\"actionDate\":\"2026-06-19T15:26:58.486Z\",\"status\":\"assigned\"},{\"employee\":{\"_id\":\"6a339bcce672a5167a29c069\",\"empId\":\"E100\",\"name\":\"Aditya\",\"phone\":\"1111111111\",\"dept\":\"engineering\"},\"actionDate\":\"2026-06-19T15:27:20.071Z\",\"status\":\"returned\"},{\"employee\":{\"_id\":\"6a339bcce672a5167a29c069\",\"empId\":\"E100\",\"name\":\"Aditya\",\"phone\":\"1111111111\",\"dept\":\"engineering\"},\"actionDate\":\"2026-06-19T15:30:44.349Z\",\"status\":\"assigned\"}],\"maintenanceHistory\":[{\"employee\":{\"_id\":\"6a339bcce672a5167a29c069\",\"empId\":\"E100\",\"name\":\"Aditya\",\"phone\":\"1111111111\",\"dept\":\"engineering\"},\"actionDate\":\"2026-06-19T15:32:48.614Z\",\"status\":\"under maintenance\"},{\"employee\":{\"_id\":\"6a339bcce672a5167a29c069\",\"empId\":\"E100\",\"name\":\"Aditya\",\"phone\":\"1111111111\",\"dept\":\"engineering\"},\"actionDate\":\"2026-06-19T15:34:51.515Z\",\"status\":\"maintenance completed\"}]}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","assets","6a3282477c8f07f18955bba4"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9878dc1d-6b51-470f-97af-a13bcc764ad3"},{"name":"Update Asset","id":"e8445143-088e-441e-afe3-0c9d6620c078","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"assetName","value":"4000","type":"text","id":0},{"key":"model","value":"horizon","type":"text","id":1},{"key":"department","value":"6a3a2173147cf248d9af14de","type":"text","id":2}]},"url":"localhost:5000/api/assets/6a3955349c9c66a62b9cfca3","description":"<h2 id=\"input\">Input:</h2>\n<p><b>API</b><strong>:</strong> <code>localhost:5000/api/assets/asset_object_id</code></p>\n<p><b>Url Params:</b> <code>asset_object_id</code> (asset._id)</p>\n<p><b>Body:</b> Form Data (with all the changed fields)</p>\n<p>eg: <code>localhost:5000/api/assets/6a3282477c8f07f18955bba4</code></p>\n<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"message\":\"Asset updated successfully\",\"asset\":{\"_id\":\"6a37abed247b23a282fb16f1\",\"assetName\":\"4000\",\"category\":{\"_id\":\"6a313e67beed4ea2d87b14f8\",\"categoryName\":\"Laptop\",\"description\":\"all laptops\"},\"vendor\":{\"_id\":\"6a313dcdbeed4ea2d87b14f6\",\"vendorName\":\"Dell\",\"contactPerson\":\"Aditya\",\"email\":\"aditya@gmail.com\",\"phone\":\"9999999999\",\"address\":\"bbsr\"},\"model\":\"horizon\",\"serialNumber\":\"504\",\"purchaseDate\":\"2026-06-16T00:00:00.000Z\",\"purchaseCost\":60000,\"warrantyExpiry\":\"2027-06-16T00:00:00.000Z\",\"assetImage\":\"/uploads/assets/1782033389293-401358098.png\",\"additionalNotes\":\"test laptop\",\"status\":\"Available\",\"assignedTo\":null,\"assignedDate\":null,\"assetId\":\"AST-1782033389319-421\",\"createdAt\":\"2026-06-21T09:16:29.320Z\",\"updatedAt\":\"2026-06-21T09:47:48.781Z\",\"__v\":0}}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","assets","6a3955349c9c66a62b9cfca3"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e8445143-088e-441e-afe3-0c9d6620c078"},{"name":"Dispose Asset (Update)","id":"757d957f-ac82-494c-adfe-03b23f43b650","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[]},"url":"localhost:5000/api/assets/6a3952449c9c66a62b9cfc8e?status=dispose","description":"<h2 id=\"input\">Input:</h2>\n<p><b>API</b><strong>:</strong> <code>localhost:5000/api/assets/asset_object_id</code></p>\n<p><b>Url Params:</b> <code>asset_object_id</code> (asset._id)</p>\n<p><b>Query Params:</b> status = dispose</p>\n<p><code>localhost:5000/api/assets/6a3282477c8f07f18955bba4?status=dispose</code></p>\n<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"message\":\"Asset disposed successfully\"}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","assets","6a3952449c9c66a62b9cfc8e"],"host":["localhost"],"query":[{"key":"status","value":"dispose"}],"variable":[]}},"response":[],"_postman_id":"757d957f-ac82-494c-adfe-03b23f43b650"},{"name":"Delete Asset","id":"c0a5b4db-c470-4919-8698-fe027375b501","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"DELETE","header":[],"url":"localhost:5000/api/assets/6a37ac66fbf1f4e7ef1f7c7d","description":"<h2 id=\"input\">Input:</h2>\n<p><b>API</b><strong>:</strong> <code>localhost:5000/api/assets/asset_object_id</code></p>\n<p><b>Url Params:</b> <code>asset_object_id</code> (asset._id)</p>\n<p>eg: <code>localhost:5000/api/assets/6a3282477c8f07f18955bba4</code></p>\n<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"message\":\"Asset deleted successfully\"}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","assets","6a37ac66fbf1f4e7ef1f7c7d"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c0a5b4db-c470-4919-8698-fe027375b501"},{"name":"Maintenance Start","id":"705f68c9-adab-4553-ae9d-d02bdd45632b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"assetId","value":"6a3282477c8f07f18955bba4","type":"text","id":0},{"key":"remarks","value":"added to  maintenance","type":"text","id":1}]},"url":"localhost:5000/api/assets/maintenance/start","description":"<h2 id=\"input\">Input:</h2>\n<p><b>Body:</b> Form Data with two fields only :</p>\n<ol>\n<li>assetId - Asset Object Id (asset._id)</li>\n<li>remarks - (from Admin, if not provided - default : empty string)</li>\n</ol>\n<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"message\":\"Asset marked under maintenance successfully\"}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","assets","maintenance","start"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"705f68c9-adab-4553-ae9d-d02bdd45632b"},{"name":"Maintenance Complete","id":"ac1f5689-cfa8-497e-8b84-d3e2ae5a9c19","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"assetId","value":"6a3282477c8f07f18955bba4","type":"text","id":0},{"key":"remarks","value":"completing maintenance","type":"text","id":1}]},"url":"localhost:5000/api/assets/maintenance/complete","description":"<h2 id=\"input\">Input:</h2>\n<p><b>Body:</b> Form Data with two fields only :</p>\n<ol>\n<li>assetId - Asset Object Id (asset._id)</li>\n<li>remarks - (from Admin, if not provided - default : empty string)</li>\n</ol>\n<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"message\":\"Asset maintenance completed successfully\"}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","assets","maintenance","complete"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ac1f5689-cfa8-497e-8b84-d3e2ae5a9c19"},{"name":"Return Asset","id":"1b331b85-df7e-43d7-9617-96d5bf6ff9bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"assetId","value":"6a3282477c8f07f18955bba4","type":"text","id":0},{"key":"remarks","value":"i am returning","type":"text","id":1}]},"url":"localhost:5000/api/assets/return","description":"<h2 id=\"input\">Input:</h2>\n<p><b>Body:</b> Form Data with two fields only :</p>\n<ol>\n<li>assetId - Asset Object Id (asset._id)</li>\n<li>remarks - (from Admin, if not provided - default : empty string)</li>\n</ol>\n<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"message\":\"Asset returned successfully\"}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","assets","return"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1b331b85-df7e-43d7-9617-96d5bf6ff9bb"},{"name":"Get Maintenance History","id":"07cc2706-1403-4198-b4e5-4d51b2c125f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"GET","header":[],"url":"localhost:5000/api/assets/maintenance","description":"<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"count\":7,\"maintenanceHistory\":[{\"historyId\":\"6a39574ba06c883127b730fe\",\"_id\":\"6a39550d9c9c66a62b9cfca2\",\"name\":\"Network Switch - 01\",\"assetName\":\"Network Switch - 01\",\"assetId\":\"AST-1782142221313-719\",\"model\":\"TP-Link TL-SG1024D\",\"department\":{\"_id\":\"6a3a2173147cf248d9af14de\",\"deptName\":\"Engineering &amp; Construction\",\"deptIncharge\":\"Aditya\"},\"categoryName\":\"Network Switches\",\"vendorName\":\"TP-Link\",\"status\":\"maintenance_completed\",\"assignedTo\":{\"_id\":\"6a394ffa9c9c66a62b9cfc87\",\"empId\":\"E400\",\"name\":\"Nitin\"},\"remarks\":\"maintenance completed\",\"actionDate\":\"2026-06-22T15:39:55.277Z\"},{\"historyId\":\"6a39572ea06c883127b730fd\",\"_id\":\"6a3953029c9c66a62b9cfc92\",\"name\":\"Laptop - 01\",\"assetName\":\"Laptop - 01\",\"assetId\":\"AST-1782141698783-877\",\"model\":\"Dell Latitude 5440\",\"department\":{\"_id\":\"6a3a2173147cf248d9af14de\",\"deptName\":\"Engineering &amp; Construction\",\"deptIncharge\":\"Aditya\"},\"categoryName\":\"Laptop\",\"vendorName\":\"Dell Technologies\",\"status\":\"maintenance_completed\",\"assignedTo\":{\"_id\":\"6a3951149c9c66a62b9cfc8a\",\"empId\":\"E700\",\"name\":\"Aparajita\"},\"remarks\":\"maintenance completed\",\"actionDate\":\"2026-06-22T15:39:26.765Z\"},{\"historyId\":\"6a3956679c9c66a62b9cfcb3\",\"_id\":\"6a3952d99c9c66a62b9cfc91\",\"name\":\"Printer - 02\",\"assetName\":\"Printer - 02\",\"assetId\":\"AST-1782141657557-854\",\"model\":\"Epson EcoTank L3250\",\"department\":{\"_id\":\"6a3a2173147cf248d9af14de\",\"deptName\":\"Engineering &amp; Construction\",\"deptIncharge\":\"Aditya\"},\"categoryName\":\"Printer\",\"vendorName\":\"Epson India\",\"status\":\"maintenance_started\",\"assignedTo\":{\"_id\":\"6a394f969c9c66a62b9cfc85\",\"empId\":\"E200\",\"name\":\"Dibya Ranjan\"},\"remarks\":\"maintenance started\",\"actionDate\":\"2026-06-22T15:36:07.442Z\"},{\"historyId\":\"6a3956629c9c66a62b9cfcb2\",\"_id\":\"6a39550d9c9c66a62b9cfca2\",\"name\":\"Network Switch - 01\",\"assetName\":\"Network Switch - 01\",\"assetId\":\"AST-1782142221313-719\",\"model\":\"TP-Link TL-SG1024D\",\"department\":{\"_id\":\"6a3a2173147cf248d9af14de\",\"deptName\":\"Engineering &amp; Construction\",\"deptIncharge\":\"Aditya\"},\"categoryName\":\"Network Switches\",\"vendorName\":\"TP-Link\",\"status\":\"maintenance_started\",\"assignedTo\":{\"_id\":\"6a394ffa9c9c66a62b9cfc87\",\"empId\":\"E400\",\"name\":\"Nitin\"},\"remarks\":\"maintenance started\",\"actionDate\":\"2026-06-22T15:36:02.234Z\"},{\"historyId\":\"6a3956329c9c66a62b9cfcb1\",\"_id\":\"6a3952819c9c66a62b9cfc8f\",\"name\":\"Air Conditioner - 02\",\"assetName\":\"Air Conditioner - 02\",\"assetId\":\"AST-1782141569647-807\",\"model\":\"Daikin FTKF50\",\"department\":{\"_id\":\"6a3a2173147cf248d9af14de\",\"deptName\":\"Engineering &amp; Construction\",\"deptIncharge\":\"Aditya\"},\"categoryName\":\"Air Conditioners\",\"vendorName\":\"Daikin India\",\"status\":\"maintenance_started\",\"assignedTo\":{\"_id\":\"6a394f659c9c66a62b9cfc83\",\"empId\":\"E100\",\"name\":\"Aditya Sahoo\"},\"remarks\":\"maintenance started\",\"actionDate\":\"2026-06-22T15:35:14.394Z\"},{\"historyId\":\"6a3956219c9c66a62b9cfcb0\",\"_id\":\"6a3951d79c9c66a62b9cfc8c\",\"name\":\"Office Desk - 01\",\"assetName\":\"Office Desk - 01\",\"assetId\":\"AST-1782141399546-812\",\"model\":\"WoodCraft WD120\",\"department\":{\"_id\":\"6a3a2173147cf248d9af14de\",\"deptName\":\"Engineering &amp; Construction\",\"deptIncharge\":\"Aditya\"},\"categoryName\":\"Furniture\",\"vendorName\":\"Furni Hub\",\"status\":\"maintenance_started\",\"assignedTo\":{\"_id\":\"6a394fd19c9c66a62b9cfc86\",\"empId\":\"E300\",\"name\":\"Ashutosh\"},\"remarks\":\"maintenance started\",\"actionDate\":\"2026-06-22T15:34:57.529Z\"},{\"historyId\":\"6a3955f69c9c66a62b9cfcaf\",\"_id\":\"6a3953029c9c66a62b9cfc92\",\"name\":\"Laptop - 01\",\"assetName\":\"Laptop - 01\",\"assetId\":\"AST-1782141698783-877\",\"model\":\"Dell Latitude 5440\",\"department\":{\"_id\":\"6a3a2173147cf248d9af14de\",\"deptName\":\"Engineering &amp; Construction\",\"deptIncharge\":\"Aditya\"},\"categoryName\":\"Laptop\",\"vendorName\":\"Dell Technologies\",\"status\":\"maintenance_started\",\"assignedTo\":{\"_id\":\"6a3951149c9c66a62b9cfc8a\",\"empId\":\"E700\",\"name\":\"Aparajita\"},\"remarks\":\"maintenance started\",\"actionDate\":\"2026-06-22T15:34:14.810Z\"}],\"maintenanceStartedAssetIds\":[\"6a3952d99c9c66a62b9cfc91\",\"6a3952819c9c66a62b9cfc8f\",\"6a3951d79c9c66a62b9cfc8c\"]}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","assets","maintenance"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"07cc2706-1403-4198-b4e5-4d51b2c125f2"},{"name":"Get Returns History","id":"65161881-d600-4e33-b52e-34c8ac3bf4f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:5000/api/return","description":"<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"count\":2,\"returnedAssets\":[{\"historyId\":\"6a3a3b8cebe79c69cc23bd97\",\"_id\":\"6a39550d9c9c66a62b9cfca2\",\"name\":\"Network Switch - 01\",\"assetName\":\"Network Switch - 01\",\"assetId\":\"AST-1782142221313-719\",\"model\":\"TP-Link TL-SG1024D\",\"department\":{\"_id\":\"6a3a2173147cf248d9af14de\",\"deptName\":\"Engineering &amp; Construction\",\"deptIncharge\":\"Aditya\"},\"categoryName\":\"Network Switches\",\"vendorName\":\"TP-Link\",\"status\":\"returned\",\"assignedTo\":{\"_id\":\"6a394ffa9c9c66a62b9cfc87\",\"empId\":\"E400\",\"name\":\"Nitin\"},\"remarks\":\"returned\",\"actionDate\":\"2026-06-23T07:53:48.145Z\"},{\"historyId\":\"6a3a3a47e0a58a1277cfaa8d\",\"_id\":\"6a3955349c9c66a62b9cfca3\",\"name\":\"Biometric Device - 01\",\"assetName\":\"Biometric Device - 01\",\"assetId\":\"AST-1782142260658-974\",\"model\":\"eSSL K30 Pro\",\"department\":{\"_id\":\"6a3a2173147cf248d9af14de\",\"deptName\":\"Engineering &amp; Construction\",\"deptIncharge\":\"Aditya\"},\"categoryName\":\"Biometric Device\",\"vendorName\":\"eSSL Security\",\"status\":\"returned\",\"assignedTo\":{\"_id\":\"6a3950f39c9c66a62b9cfc89\",\"empId\":\"E600\",\"name\":\"Ipshika\"},\"remarks\":\"returned\",\"actionDate\":\"2026-06-23T07:48:23.173Z\"}]}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","return"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"65161881-d600-4e33-b52e-34c8ac3bf4f6"}],"id":"bc931200-69e0-4c95-a06d-3aaa618b6570","description":"<ol>\n<li><p>POST - Create Asset</p>\n</li>\n<li><p>GET - Get All Assets</p>\n</li>\n<li><p>GET - Get Asset QR</p>\n</li>\n<li><p>GET - Get Asset by Id</p>\n</li>\n<li><p>PUT - Update Asset</p>\n</li>\n<li><p>DELETE - Delete Asset</p>\n</li>\n<li><p>PATCH - Maintenance Start</p>\n</li>\n<li><p>PATCH - Maintenance Complete</p>\n</li>\n<li><p>PATCH - Return Asset</p>\n</li>\n<li><p>PUT - Dispose Asset</p>\n</li>\n<li><p>GET - Maintenance History</p>\n</li>\n<li><p>GET - Returns History</p>\n</li>\n</ol>\n","_postman_id":"bc931200-69e0-4c95-a06d-3aaa618b6570"},{"name":"Employee Apis","item":[{"name":"Add Employee","id":"edee9b26-6715-4a52-af7d-d7844f1da7f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Aditya","type":"text","id":0},{"key":"empId","value":"E200","type":"text","id":1},{"key":"email","value":"b424003@iiit-bh.ac.in","type":"text","id":2},{"key":"designation","value":"web developer","type":"text","id":3},{"key":"department","value":"engineering","type":"text","id":4},{"key":"dateOfJoining","value":"2026-06-18","type":"text","id":5},{"key":"profilePic","type":"file","id":6,"fileUploadError":"","src":["c:\\Users\\ADITYA\\Downloads\\eye (3).png"]},{"key":"idProofDoc","type":"file","id":7,"fileUploadError":"","src":["c:\\Users\\ADITYA\\Downloads\\user (5).png"]}]},"url":"localhost:5000/api/employees","description":"<h2 id=\"input\">Input:</h2>\n<p>Body ( Form Data )</p>\n<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"success\":true,\"message\":\"Employee created successfully. Temporary login credentials were emailed to the employee.\",\"employee\":{\"name\":\"Aditya\",\"empId\":\"E300\",\"email\":\"aditya2@iiit-bh.ac.in\",\"designation\":\"web developer\",\"department\":\"engineering\",\"phone\":\"9999999\",\"profilePic\":\"/uploads/employee/profilepic/profilePic-1782036229510-eye-3-.png\",\"idProofDoc\":\"/uploads/employee/idproofs/idProofDoc-1782036229512-user-5-.png\",\"dateOfJoining\":\"2026-06-18T00:00:00.000Z\",\"_id\":\"6a37b705ae58446215510ae6\",\"createdAt\":\"2026-06-21T10:03:49.959Z\",\"updatedAt\":\"2026-06-21T10:03:49.959Z\",\"__v\":0}}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","employees"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"edee9b26-6715-4a52-af7d-d7844f1da7f3"},{"name":"Get All Employees","id":"e5c65dd9-a76c-46b4-9a45-6a045e0d94ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:5000/api/employees","description":"<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"success\":true,\"count\":7,\"totalCount\":7,\"employees\":[{\"_id\":\"6a3951149c9c66a62b9cfc8a\",\"name\":\"Aparajita\",\"email\":\"aparajita@gmail.com\",\"phone\":\"6532149870\",\"designation\":\"SWE\",\"department\":\"Engineering\",\"empId\":\"E700\"},{\"_id\":\"6a3950f39c9c66a62b9cfc89\",\"name\":\"Ipshika\",\"email\":\"ipshika@gmail.com\",\"phone\":\"9865321470\",\"designation\":\"JE\",\"department\":\"Civil\",\"empId\":\"E600\"},{\"_id\":\"6a39504d9c9c66a62b9cfc88\",\"name\":\"Bijayeene\",\"email\":\"bijayeene@gmail.com\",\"phone\":\"9865741320\",\"designation\":\"AGC\",\"department\":\"Finance\",\"empId\":\"E500\"},{\"_id\":\"6a394ffa9c9c66a62b9cfc87\",\"name\":\"Nitin\",\"email\":\"nitin@gmail.com\",\"phone\":\"36214659870\",\"designation\":\"EG\",\"department\":\"Construction\",\"empId\":\"E400\"},{\"_id\":\"6a394fd19c9c66a62b9cfc86\",\"name\":\"Ashutosh\",\"email\":\"ashutosh@gmail.com\",\"phone\":\"6549712038\",\"designation\":\"AG\",\"department\":\"Finance\",\"empId\":\"E300\"},{\"_id\":\"6a394f969c9c66a62b9cfc85\",\"name\":\"Dibya Ranjan\",\"email\":\"dibya@gmail.com\",\"phone\":\"78963145520\",\"designation\":\"SWE\",\"department\":\"Engineering\",\"empId\":\"E200\"},{\"_id\":\"6a394f659c9c66a62b9cfc83\",\"name\":\"Aditya\",\"email\":\"aditya@gmail.com\",\"phone\":\"123456789\",\"designation\":\"JE\",\"department\":\"Engineering\",\"empId\":\"E100\"}]}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","employees"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e5c65dd9-a76c-46b4-9a45-6a045e0d94ad"},{"name":"Get Employee by Id","id":"81b7f15d-7d09-4332-a897-52c43af2596f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"GET","header":[],"url":"localhost:5000/api/employees/6a339bcce672a5167a29c069","description":"<h2 id=\"input\">Input:</h2>\n<p><b>API</b><strong>:</strong> <code>localhost:5000/api/employees/employee_object_id</code></p>\n<p><b>Url Params:</b> <code>employee_object_id</code></p>\n<p>eg: <code>localhost:5000/api/employees/6a339bcce672a5167a29c069</code></p>\n<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"success\":true,\"employee\":{\"_id\":\"6a339bcce672a5167a29c069\",\"name\":\"Aditya\",\"empId\":\"E100\",\"email\":\"eleventhframe.creative@gmail.com\",\"designation\":\"swe\",\"department\":\"engineering\",\"profilePic\":\"/uploads/employee/profilepic/profilePic-1781767116037-eye-3-.png\",\"dateOfJoining\":\"2026-06-18T00:00:00.000Z\",\"phone\":\"1111111111\"},\"assetDetails\":[{\"assetName\":\"Laptop 3001\",\"categoryName\":\"Laptop\",\"assetId\":\"AST-1781695282656-538\",\"serialNumber\":\"400\",\"assignedDate\":\"2026-06-19T15:30:44.349Z\"}]}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","employees","6a339bcce672a5167a29c069"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"81b7f15d-7d09-4332-a897-52c43af2596f"},{"name":"Get Single Employee Assignment Histroy","id":"39ef63e5-8649-4f38-a9b8-e35c8b689bb9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"GET","header":[],"url":"localhost:5000/api/employees/6a339bcce672a5167a29c069/history","description":"<h2 id=\"input\">Input:</h2>\n<p><b>API</b><strong>:</strong> <code>localhost:5000/api/employees/employee_object_id/history</code></p>\n<p><b>Url Params:</b> <code>employee_object_id</code></p>\n<p>eg: <code>localhost:5000/api/employees/6a339bcce672a5167a29c069/history</code></p>\n<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"success\":true,\"count\":14,\"history\":[{\"assetName\":\"Laptop 2001\",\"assetId\":\"AST-1781695047933-63\",\"categoryName\":\"Laptop\",\"status\":\"Available\",\"action\":\"RETURNED\",\"remarks\":\"i am returning\",\"actionDate\":\"2026-06-21T09:55:57.481Z\"},{\"assetName\":\"Laptop 2001\",\"assetId\":\"AST-1781695047933-63\",\"categoryName\":\"Laptop\",\"status\":\"Available\",\"action\":\"MAINTENANCE_COMPLETED\",\"remarks\":\"completing maintenance\",\"actionDate\":\"2026-06-21T09:53:15.865Z\"},{\"assetName\":\"Laptop 2001\",\"assetId\":\"AST-1781695047933-63\",\"categoryName\":\"Laptop\",\"status\":\"Available\",\"action\":\"MAINTENANCE_STARTED\",\"remarks\":\"added to  maintenance\",\"actionDate\":\"2026-06-21T09:49:32.892Z\"},{\"assetName\":\"Laptop 2001\",\"assetId\":\"AST-1781695047933-63\",\"categoryName\":\"Laptop\",\"status\":\"Available\",\"action\":\"MAINTENANCE_COMPLETED\",\"remarks\":\"completing maintenance\",\"actionDate\":\"2026-06-19T15:34:51.515Z\"},{\"assetName\":\"Laptop 2001\",\"assetId\":\"AST-1781695047933-63\",\"categoryName\":\"Laptop\",\"status\":\"Available\",\"action\":\"MAINTENANCE_STARTED\",\"remarks\":\"added to  maintenance\",\"actionDate\":\"2026-06-19T15:32:48.614Z\"},{\"assetName\":\"Laptop 2001\",\"assetId\":\"AST-1781695047933-63\",\"categoryName\":\"Laptop\",\"status\":\"Available\",\"action\":\"ASSIGNED\",\"remarks\":\"Assigned to employee\",\"actionDate\":\"2026-06-19T15:30:44.349Z\"},{\"assetName\":\"Laptop 3001\",\"assetId\":\"AST-1781695282656-538\",\"categoryName\":\"Laptop\",\"status\":\"Assigned\",\"action\":\"ASSIGNED\",\"remarks\":\"Assigned to employee\",\"actionDate\":\"2026-06-19T15:30:44.349Z\"},{\"assetName\":\"Laptop 3001\",\"assetId\":\"AST-1781695282656-538\",\"categoryName\":\"Laptop\",\"status\":\"Assigned\",\"action\":\"RETURNED\",\"remarks\":\"i am returning\",\"actionDate\":\"2026-06-19T15:30:34.121Z\"},{\"assetName\":\"Laptop 2001\",\"assetId\":\"AST-1781695047933-63\",\"categoryName\":\"Laptop\",\"status\":\"Available\",\"action\":\"RETURNED\",\"remarks\":\"i am returning\",\"actionDate\":\"2026-06-19T15:27:20.071Z\"},{\"assetName\":\"Laptop 2001\",\"assetId\":\"AST-1781695047933-63\",\"categoryName\":\"Laptop\",\"status\":\"Available\",\"action\":\"ASSIGNED\",\"actionDate\":\"2026-06-19T15:26:58.486Z\"},{\"assetName\":\"Laptop 3001\",\"assetId\":\"AST-1781695282656-538\",\"categoryName\":\"Laptop\",\"status\":\"Assigned\",\"action\":\"ASSIGNED\",\"actionDate\":\"2026-06-19T15:26:58.486Z\"},{\"assetName\":\"Laptop 2001\",\"assetId\":\"AST-1781695047933-63\",\"categoryName\":\"Laptop\",\"status\":\"Available\",\"action\":\"RETURNED\",\"remarks\":\"i am returning\",\"actionDate\":\"2026-06-19T15:25:21.277Z\"},{\"assetName\":\"Laptop 3001\",\"assetId\":\"AST-1781695282656-538\",\"categoryName\":\"Laptop\",\"status\":\"Assigned\",\"action\":\"assigned\",\"actionDate\":\"2026-06-18T12:44:39.244Z\"},{\"assetName\":\"Laptop 2001\",\"assetId\":\"AST-1781695047933-63\",\"categoryName\":\"Laptop\",\"status\":\"Available\",\"action\":\"assigned\",\"actionDate\":\"2026-06-18T12:44:39.244Z\"}]}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","employees","6a339bcce672a5167a29c069","history"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"39ef63e5-8649-4f38-a9b8-e35c8b689bb9"},{"name":"Assign Assets to Employee","id":"bd18971d-941f-441d-8134-0ff7ff65f93b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n  \"employeeId\": \"6a339bcce672a5167a29c069\",\r\n  \"assetIds\": [\r\n    \"6a3282477c8f07f18955bba4\",\r\n    \"6a32833283b10213e747723f\"\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:5000/api/employees/assign","description":"<h2 id=\"input\">Input:</h2>\n<p><b>Body:</b> JSON Data two fields only :</p>\n<ol>\n<li>employeeId - Employee Object Id (_id)</li>\n<li>assetIds - Asset Object Id 's of multiple assets (_id)</li>\n</ol>\n<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"message\":\"Assets assigned successfully\"}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","employees","assign"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"bd18971d-941f-441d-8134-0ff7ff65f93b"},{"name":"Update Employee","id":"b4c9d77c-9221-4c24-9ad8-af3666b84585","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Ram charan","type":"text","id":0},{"key":"empId","value":"E2300","type":"text","id":1},{"key":"email","value":"ram@iiit-bh.ac.in","type":"text","id":2},{"key":"designation","value":"web developer","type":"text","id":3},{"key":"department","value":"engineering","type":"text","id":4},{"key":"dateOfJoining","value":"2026-06-18","type":"text","id":5},{"key":"profilePic","value":"","type":"file","id":6,"fileUploadError":""},{"key":"idProofDoc","value":"","type":"file","id":7,"fileUploadError":""}]},"url":"localhost:5000/api/employees/6a3a1f52b1fa69516b0a7d43","description":"<h2 id=\"input\">Input:</h2>\n<p><b>API</b><strong>:</strong> <code>localhost:5000/api/employees/employee_object_id</code></p>\n<p><b>Url Params:</b> <code>employee_object_id</code></p>\n<p><b>Body:</b> ( Form Data )</p>\n<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"success\":true,\"message\":\"Employee updated successfully\",\"employee\":{\"_id\":\"6a394f659c9c66a62b9cfc83\",\"name\":\"Aditya Sahoo\",\"empId\":\"E100\",\"email\":\"aditya@gmail.com\",\"designation\":\"JE\",\"department\":\"Engineering\",\"phone\":\"123456789\",\"profilePic\":\"/uploads/employee/profilepic/profilePic-1782140773005-zahir-namane-hwc7eIQiTCE-unsplash.jpg\",\"idProofDoc\":\"/uploads/employee/idproofs/idProofDoc-1782140773019-4th-sem-fees.pdf\",\"dateOfJoining\":\"2026-06-22T00:00:00.000Z\",\"createdAt\":\"2026-06-22T15:06:13.029Z\",\"updatedAt\":\"2026-06-23T06:17:29.337Z\",\"__v\":0}}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","employees","6a3a1f52b1fa69516b0a7d43"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b4c9d77c-9221-4c24-9ad8-af3666b84585"},{"name":"Delete Employee","id":"bbbaed7a-b10c-469c-95a9-35de94dd9e09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"DELETE","header":[],"url":"localhost:5000/api/employees/6a3a1f52b1fa69516b0a7d43","description":"<h2 id=\"input\">Input:</h2>\n<p><b>API</b><strong>:</strong> <code>localhost:5000/api/employees/employee_object_id</code></p>\n<p><b>Url Params:</b> <code>employee_object_id</code></p>\n<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"success\":true,\"message\":\"Employee deleted successfully\"}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","employees","6a3a1f52b1fa69516b0a7d43"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"bbbaed7a-b10c-469c-95a9-35de94dd9e09"}],"id":"4cb9227d-d518-456e-a8e3-22c9a494cef4","description":"<ol>\n<li><p>POST - Add Employee</p>\n</li>\n<li><p>GET - Get All Employees</p>\n</li>\n<li><p>GET - Get Employee by Id</p>\n</li>\n<li><p>GET - Get Single Employee Assignment Histroy</p>\n</li>\n<li><p>PATCH - Assign Assets to Employee</p>\n</li>\n<li><p>PATCH - Update Employee</p>\n</li>\n<li><p>DELETE - Delete Employee</p>\n</li>\n</ol>\n","_postman_id":"4cb9227d-d518-456e-a8e3-22c9a494cef4"},{"name":"Reports Apis","item":[{"name":"Export Report By Status","id":"2e187018-5dd4-46ef-9def-03d869487a01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"GET","header":[],"url":"localhost:5000/api/reports/assets/available","description":"<h2 id=\"input\">Input:</h2>\n<p><code>localhost:5000/api/reports/assets/available</code></p>\n<p>OR</p>\n<p><code>localhost:5000/api/reports/assets/assigned</code></p>\n<p>OR</p>\n<p><code>localhost:5000/api/reports/assets/maintenance</code></p>\n<h2 id=\"output\">Output:</h2>\n<p>EXCEL Document</p>\n","urlObject":{"port":"5000","path":["api","reports","assets","available"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"2e187018-5dd4-46ef-9def-03d869487a01"},{"name":"Export All Assets Report","id":"088934ae-80e2-4a3c-bcbf-fd2ed427df9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"GET","header":[],"url":"localhost:5000/api/reports/assets/all","description":"<h2 id=\"output\">Output:</h2>\n<p>EXCEL Document</p>\n","urlObject":{"port":"5000","path":["api","reports","assets","all"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"088934ae-80e2-4a3c-bcbf-fd2ed427df9a"},{"name":"Export All Employees Report","id":"953bea82-a7e2-4b14-8d2b-affc0d565b5c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"GET","header":[],"url":"localhost:5000/api/reports/employees/all","description":"<h2 id=\"output\">Output:</h2>\n<p>EXCEL Document</p>\n","urlObject":{"port":"5000","path":["api","reports","employees","all"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"953bea82-a7e2-4b14-8d2b-affc0d565b5c"}],"id":"9723c845-cde0-45e6-95c5-6e3b2ef1ecc4","description":"<ol>\n<li><p>GET - Export Report By Status</p>\n</li>\n<li><p>GET - Export All Assets Report</p>\n</li>\n<li><p>GET - Export All Employees Report</p>\n</li>\n</ol>\n","_postman_id":"9723c845-cde0-45e6-95c5-6e3b2ef1ecc4"},{"name":"Vendor Apis","item":[{"name":"Create Vendor","id":"6e948711-e930-4dab-a768-b2e0a748b642","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"vendorName","value":"Lenovo","type":"text","id":0},{"key":"contactPerson","value":"Aditya","type":"text","id":1},{"key":"email","value":"aditya@gmail.com","type":"text","id":2},{"key":"phone","value":"2501010","type":"text","id":3},{"key":"address","value":"bbsr","type":"text","id":4}]},"url":"localhost:5000/api/vendors","description":"<h2 id=\"input\">Input:</h2>\n<p>Body - Form Data</p>\n<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"success\":true,\"message\":\"Vendor created successfully\",\"vendor\":{\"vendorName\":\"Lenovo\",\"contactPerson\":\"Aditya\",\"email\":\"aditya@gmail.com\",\"phone\":\"2501010\",\"address\":\"bbsr\",\"_id\":\"6a37bce9863d48df393b3512\",\"createdAt\":\"2026-06-21T10:28:57.420Z\",\"updatedAt\":\"2026-06-21T10:28:57.420Z\",\"__v\":0}}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","vendors"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"6e948711-e930-4dab-a768-b2e0a748b642"},{"name":"Get Vendors","id":"cf084482-d1e1-4bed-95cf-67d8a392b9b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"GET","header":[],"url":"localhost:5000/api/vendors","description":"<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"success\":true,\"count\":2,\"vendors\":[{\"_id\":\"6a313dcdbeed4ea2d87b14f6\",\"vendorName\":\"Dell\",\"contactPerson\":\"Aditya\",\"email\":\"aditya@gmail.com\",\"phone\":\"9999999999\",\"address\":\"bbsr\"},{\"_id\":\"6a351aee28b428971c5a1294\",\"vendorName\":\"HP\",\"contactPerson\":\"dibya\",\"email\":\"dibya@gmail.com\",\"phone\":\"1212121212\",\"address\":\"bbsr\",\"createdAt\":\"2026-06-19T10:33:18.098Z\",\"updatedAt\":\"2026-06-19T10:33:18.098Z\",\"__v\":0}]}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","vendors"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"cf084482-d1e1-4bed-95cf-67d8a392b9b8"},{"name":"Update Vendor","id":"465ca3fd-2f5d-4b7c-98b7-d7bcb08722d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"vendorName","value":"Office Mart","type":"text","id":0},{"key":"contactPerson","value":"Aditya","type":"text","id":1},{"key":"email","value":"aditya@gmail.com","type":"text","id":2},{"key":"phone","value":"123654789","type":"text","id":3},{"key":"address","value":"bbsr India","type":"text","id":4}]},"url":"localhost:5000/api/vendors/6a394de39c9c66a62b9cfc7b","description":"<h2 id=\"input\">Input:</h2>\n<p><b>API</b><strong>:</strong> <code>localhost:5000/api/employees/vendor_object_id</code></p>\n<p><b>Url Params:</b> <code>vendor_object_id</code></p>\n<p><b>Body </b> - Form Data with any of the fields</p>\n<ol>\n<li><p>vendorName</p>\n</li>\n<li><p>contactPerson</p>\n</li>\n<li><p>email</p>\n</li>\n<li><p>phone</p>\n</li>\n<li><p>address</p>\n</li>\n</ol>\n<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"success\":true,\"message\":\"Vendor updated successfully\",\"vendor\":{\"_id\":\"6a394de39c9c66a62b9cfc7b\",\"vendorName\":\"Office-Mart\",\"contactPerson\":\"Aditya\",\"email\":\"aditya@gmail.com\",\"phone\":\"123654789\",\"address\":\"bbsr India\",\"createdAt\":\"2026-06-22T14:59:47.362Z\",\"updatedAt\":\"2026-06-23T06:23:07.455Z\",\"__v\":0}}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","vendors","6a394de39c9c66a62b9cfc7b"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"465ca3fd-2f5d-4b7c-98b7-d7bcb08722d1"},{"name":"Delete Vendor","id":"6ff6f1a5-86ae-4a75-8ac3-6cbbc0b07a0e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"localhost:5000/api/vendors/6a394de39c9c66a62b9cfc7b","description":"<h2 id=\"input\">Input:</h2>\n<p><b>API</b><strong>:</strong> <code>localhost:5000/api/employees/vendor_object_id</code></p>\n<p><b>Url Params:</b> <code>vendor_object_id</code></p>\n<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"success\":false,\"message\":\"Vendor is assigned to one or more assets and cannot be deleted\"}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","vendors","6a394de39c9c66a62b9cfc7b"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"6ff6f1a5-86ae-4a75-8ac3-6cbbc0b07a0e"}],"id":"e902b521-478d-41c5-baab-1a24ef5232c4","description":"<ol>\n<li><p>POST - Create Vendor</p>\n</li>\n<li><p>GET - Get Vendors</p>\n</li>\n<li><p>PATCH - Update Vendor</p>\n</li>\n<li><p>DELETE - Delete Vendor</p>\n</li>\n</ol>\n","_postman_id":"e902b521-478d-41c5-baab-1a24ef5232c4"},{"name":"Category Apis","item":[{"name":"Get All Categories","id":"2e844206-d785-43d7-adf1-4c229f98dbff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"GET","header":[],"url":"localhost:5000/api/categories","description":"<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"success\":true,\"count\":3,\"categories\":[{\"_id\":\"6a313e67beed4ea2d87b14f8\",\"categoryName\":\"Laptop\",\"description\":\"all laptops\"},{\"_id\":\"6a37beb7aab3014e38b297d8\",\"categoryName\":\"Printers\",\"description\":\"all printers\",\"createdAt\":\"2026-06-21T10:36:39.242Z\",\"updatedAt\":\"2026-06-21T10:36:39.242Z\",\"__v\":0},{\"_id\":\"6a37bf82aab3014e38b297d9\",\"categoryName\":\"Television\",\"description\":\"all television\",\"createdAt\":\"2026-06-21T10:40:02.670Z\",\"updatedAt\":\"2026-06-21T10:40:02.670Z\",\"__v\":0}]}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","categories"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"2e844206-d785-43d7-adf1-4c229f98dbff"},{"name":"Create Category","id":"90107b05-162b-4125-a3be-bca363d66856","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"categoryName","value":"Printers","type":"text","id":0},{"key":"description","value":"all printers","type":"text","id":1}]},"url":"localhost:5000/api/categories","description":"<h2 id=\"input\">Input:</h2>\n<p>Body - Form Data with two fields:</p>\n<ol>\n<li>categoryName</li>\n<li>description</li>\n</ol>\n<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">{\"success\":true,\"message\":\"Category created successfully\",\"category\":{\"categoryName\":\"Printers\",\"description\":\"all printers\",\"_id\":\"6a37beb7aab3014e38b297d8\",\"createdAt\":\"2026-06-21T10:36:39.242Z\",\"updatedAt\":\"2026-06-21T10:36:39.242Z\",\"__v\":0}}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","categories"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"90107b05-162b-4125-a3be-bca363d66856"},{"name":"Update Category","id":"3f243c13-81ae-41ee-8b81-3328e5d22303","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"description","value":"all  kind of printers","type":"text","id":0},{"key":"categoryName","value":"Printers","type":"text","id":1}]},"url":"localhost:5000/api/categories/6a394d949c9c66a62b9cfc78","description":"<h2 id=\"input\">Input:</h2>\n<p><b>API</b><strong>:</strong> <code>localhost:5000/api/employees/category_object_id</code></p>\n<p><b>Url Params:</b> <code>category_object_id</code></p>\n<p><b>Body</b> - Form Data with any of these fields:</p>\n<ol>\n<li><p>categoryName</p>\n</li>\n<li><p>description</p>\n</li>\n</ol>\n<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"success\":true,\"message\":\"Category updated successfully\",\"category\":{\"_id\":\"6a394d949c9c66a62b9cfc78\",\"categoryName\":\"Printer\",\"description\":\"all  printers\",\"createdAt\":\"2026-06-22T14:58:28.323Z\",\"updatedAt\":\"2026-06-23T06:25:02.065Z\",\"__v\":0}}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","categories","6a394d949c9c66a62b9cfc78"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"3f243c13-81ae-41ee-8b81-3328e5d22303"},{"name":"Delete Category","id":"eede067a-9b77-482d-8c17-81dbd9bdccab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"localhost:5000/api/categories/6a394d949c9c66a62b9cfc78","description":"<h2 id=\"input\">Input:</h2>\n<p><b>API</b><strong>:</strong> <code>localhost:5000/api/employees/category_object_id</code></p>\n<p><b>Url Params:</b> <code>category_object_id</code></p>\n<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"success\":false,\"message\":\"Category is assigned to one or more assets and cannot be deleted\"}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","categories","6a394d949c9c66a62b9cfc78"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"eede067a-9b77-482d-8c17-81dbd9bdccab"}],"id":"8ab908fd-dbac-49ee-b5f2-2dd1fc7100c9","description":"<ol>\n<li><p>POST - Create Category</p>\n</li>\n<li><p>GET - Get All Categories</p>\n</li>\n<li><p>PATCH - Update Category</p>\n</li>\n<li><p>DELETE - Delete Category</p>\n</li>\n</ol>\n","_postman_id":"8ab908fd-dbac-49ee-b5f2-2dd1fc7100c9"},{"name":"Department Apis","item":[{"name":"Get Departments","id":"dfe33cff-4e7e-4c9c-8a3e-b63e822a78fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"GET","header":[],"url":"localhost:5000/api/departments","description":"<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"success\":true,\"count\":2,\"departments\":[{\"_id\":\"6a3a2173147cf248d9af14de\",\"deptName\":\"Engineering &amp; Construction\",\"deptIncharge\":\"Aditya\",\"additionalNote\":\"all engineering departments\",\"createdAt\":\"2026-06-23T06:02:27.858Z\",\"updatedAt\":\"2026-06-23T06:04:15.176Z\",\"__v\":0},{\"_id\":\"6a3a272ecc646a9111b459e4\",\"deptName\":\"Finance\",\"deptIncharge\":\"Ram\",\"additionalNote\":\"finance department\",\"createdAt\":\"2026-06-23T06:26:54.267Z\",\"updatedAt\":\"2026-06-23T06:26:54.267Z\",\"__v\":0}]}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","departments"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"dfe33cff-4e7e-4c9c-8a3e-b63e822a78fa"},{"name":"Add Department","id":"9c125542-e2d6-4912-b1d7-dfde58946c6c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"deptName","value":"Finance","type":"text","id":0},{"key":"deptIncharge","value":"Ram","type":"text","id":1},{"key":"additionalNote","value":"finance department","type":"text","id":2}]},"url":"localhost:5000/api/departments","description":"<h2 id=\"input\">Input:</h2>\n<p>Body - Form Data with three fields:</p>\n<ol>\n<li>deptName</li>\n<li>deptIncharge</li>\n<li>additionalNote (optional)</li>\n</ol>\n<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">{\"success\":true,\"message\":\"Department created successfully\",\"department\":{\"deptName\":\"Finance\",\"deptIncharge\":\"Ram\",\"additionalNote\":\"finance department\",\"_id\":\"6a3a272ecc646a9111b459e4\",\"createdAt\":\"2026-06-23T06:26:54.267Z\",\"updatedAt\":\"2026-06-23T06:26:54.267Z\",\"__v\":0}}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","departments"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9c125542-e2d6-4912-b1d7-dfde58946c6c"},{"name":"Update Department","id":"89d6e3d2-25bb-4e97-9e0a-59872ea828d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"deptName","value":"Engineering & Construction","type":"text","id":0},{"key":"deptIncharge","value":"Aditya","type":"text","id":1},{"key":"additionalNote","value":"all engineering departments","type":"text","id":2}]},"url":"localhost:5000/api/departments/6a3a2173147cf248d9af14de","description":"<h2 id=\"input\">Input:</h2>\n<p><b>API</b><strong>:</strong> <code>localhost:5000/api/employees/category_object_id</code></p>\n<p><b>Url Params:</b> <code>category_object_id</code></p>\n<p><b>Body</b> - Form Data with any of these fields:</p>\n<ol>\n<li><p>deptName</p>\n</li>\n<li><p>deptIncharge</p>\n</li>\n<li><p>additionalNote (optional)</p>\n</li>\n</ol>\n<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"success\":true,\"message\":\"Department updated successfully\",\"department\":{\"_id\":\"6a3a272ecc646a9111b459e4\",\"deptName\":\"Finance\",\"deptIncharge\":\"Ram\",\"additionalNote\":\"all finance depts\",\"createdAt\":\"2026-06-23T06:26:54.267Z\",\"updatedAt\":\"2026-06-23T06:29:36.369Z\",\"__v\":0}}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","departments","6a3a2173147cf248d9af14de"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"89d6e3d2-25bb-4e97-9e0a-59872ea828d4"},{"name":"Delete Department","id":"6107b6b3-8dc8-45da-a4b4-fca51c8d446e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"localhost:5000/api/departments/6a3a2210147cf248d9af14df","description":"<h2 id=\"input\">Input:</h2>\n<p><b>API</b><strong>:</strong> <code>localhost:5000/api/employees/category_object_id</code></p>\n<p><b>Url Params:</b> <code>category_object_id</code></p>\n<h2 id=\"output\">Output:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"success\":true,\"message\":\"Department deleted successfully\"}\n\n</code></pre>\n","urlObject":{"port":"5000","path":["api","departments","6a3a2210147cf248d9af14df"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"6107b6b3-8dc8-45da-a4b4-fca51c8d446e"}],"id":"6313e8bd-f1f8-4c38-9fc9-61fa0a8999b9","description":"<ol>\n<li><p>POST - Create Department</p>\n</li>\n<li><p>GET - Get All Departments</p>\n</li>\n<li><p>PATCH - Update Department</p>\n</li>\n<li><p>DELETE - Delete Department</p>\n</li>\n</ol>\n","_postman_id":"6313e8bd-f1f8-4c38-9fc9-61fa0a8999b9"}]}