{"info":{"_postman_id":"6e10ade4-6ef8-4a49-8663-7da2a1cfd8cf","name":"Build4Me API Documentation","description":"<html><head></head><body><p>Build4Me is an AI-powered construction milestone verification platform designed for diaspora-funded building projects. Clients can track construction progress, contractors can post updates, and inspectors can verify milestones.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"51612020","collectionId":"6e10ade4-6ef8-4a49-8663-7da2a1cfd8cf","publishedId":"2sBXqCPPa6","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-04-15T03:01:41.000Z"},"item":[{"name":"Auth","item":[{"name":"Register","id":"46928902-4ff3-4557-ac6e-625851fb434a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"633bf0d7-b063-4403-8717-869f6aa4c606","name":"201 Created","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"        {\n                \"name\": \"Goose\",\n                \"email\": \"goose@gmail.com\",\n                \"password\": \"password123\",\n                \"role\": \"client\"\n            }","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/auth/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"99"},{"key":"ETag","value":"W/\"63-/ZClD/Q3r3ONBi5XJvtczxiO7oE\""},{"key":"Date","value":"Fri, 24 Apr 2026 20:08:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User registered successfully\",\n    \"user\": {\n        \"id\": 8,\n        \"name\": \"Goose\",\n        \"email\": \"goose@gmail.com\"\n    }\n}"},{"id":"4c9f0eb9-9fa1-4c7c-a0ac-1f32960194a0","name":"400 Bad Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"     {\n                \"name\": \"Goose\",\n                \"password\": \"password123\",\n                \"role\": \"client\"\n            }","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/auth/register"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"94"},{"key":"ETag","value":"W/\"5e-/P/dkRycmvivxqXwQnZaJwFhYpE\""},{"key":"Date","value":"Fri, 24 Apr 2026 20:36:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"type\": \"field\",\n            \"msg\": \"Valid email is required\",\n            \"path\": \"email\",\n            \"location\": \"body\"\n        }\n    ]\n}"}],"_postman_id":"46928902-4ff3-4557-ac6e-625851fb434a"},{"name":"Login","id":"5bc47c0e-0761-4422-8f9a-da3515b06338","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"91b89c80-9b5d-435a-8d9a-854441f2af8a","name":"200 OK","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"        {\n                \"email\": \"lotsueugene@gmail.com\",\n                \"password\": \"password123\"\n            }","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"340"},{"key":"ETag","value":"W/\"154-milWS4NDhSlAqo9002fZLMZZrSo\""},{"key":"Date","value":"Fri, 24 Apr 2026 20:39:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Login successful\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwibmFtZSI6IkV1Z2VuZSBMb3RzdSIsImVtYWlsIjoibG90c3VldWdlbmVAZ21haWwuY29tIiwicm9sZSI6ImFkbWluIiwiaWF0IjoxNzc3MDYzMTk1LCJleHAiOjE3NzcxNDk1OTV9.5mgvsbyqdxx2QxLEkteqTw0lgTxEVk2azet2YLRn3EA\",\n    \"user\": {\n        \"id\": 1,\n        \"name\": \"Eugene Lotsu\",\n        \"email\": \"lotsueugene@gmail.com\"\n    }\n}"},{"id":"2b556dce-0329-4bf1-891d-6025a84c0f91","name":"401 Unauthorized","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"        {\n                \"email\": \"gooseee@gmail.com\",\n                \"password\": \"password123\"\n            }","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/auth/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"37"},{"key":"ETag","value":"W/\"25-3YG4LRpklFolV4uVOnUIRm2hZA0\""},{"key":"Date","value":"Fri, 24 Apr 2026 20:38:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid email or password\"\n}"}],"_postman_id":"5bc47c0e-0761-4422-8f9a-da3515b06338"},{"name":"Logout","id":"049acb8c-1b8b-42ea-a04d-65176acefa3a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"43e455d0-c400-4b1c-a447-b1c7a6d1f7f9","name":"200 OK","originalRequest":{"method":"POST","header":[],"url":"http://localhost:3000/api/auth/logout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-vYmtThEV0qgPmOaoi5WLoJuDA80\""},{"key":"Date","value":"Fri, 24 Apr 2026 20:41:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Logout successful\"\n}"}],"_postman_id":"049acb8c-1b8b-42ea-a04d-65176acefa3a"}],"id":"f9874296-737d-4d7b-9654-3f81f2442ded","_postman_id":"f9874296-737d-4d7b-9654-3f81f2442ded","description":""},{"name":"Get All","item":[{"name":"Get All","id":"36e50c1d-30a7-4f13-92b9-d79577086c9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/users","description":"<p>This gets all items under endpoints: Users, Updates, Inspections and Projects</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","users"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"15b60d75-624e-482b-9c6a-fd7897a1f769","name":"Successful GET- All users","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"536"},{"key":"ETag","value":"W/\"218-z/YmdDUOIVW7BXJdoXqB3egEPHY\""},{"key":"Date","value":"Wed, 15 Apr 2026 01:41:46 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"name\": \"Kwame Mensah\",\n        \"email\": \"kwame@example.com\",\n        \"password\": \"password123\",\n        \"role\": \"client\",\n        \"createdAt\": \"2026-04-15T01:39:40.046Z\",\n        \"updatedAt\": \"2026-04-15T01:39:40.046Z\"\n    },\n    {\n        \"id\": 2,\n        \"name\": \"Ama Serwaa\",\n        \"email\": \"ama@example.com\",\n        \"password\": \"password123\",\n        \"role\": \"contractor\",\n        \"createdAt\": \"2026-04-15T01:39:40.046Z\",\n        \"updatedAt\": \"2026-04-15T01:39:40.046Z\"\n    },\n    {\n        \"id\": 3,\n        \"name\": \"Kofi Asante\",\n        \"email\": \"kofi@example.com\",\n        \"password\": \"password123\",\n        \"role\": \"inspector\",\n        \"createdAt\": \"2026-04-15T01:39:40.046Z\",\n        \"updatedAt\": \"2026-04-15T01:39:40.046Z\"\n    }\n]"},{"id":"f4213bc2-7a07-4381-a053-7c442dd6968a","name":"Successful GET- All projects","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MiwibmFtZSI6Ikt3YW1lIE1lbnNhaCIsImVtYWlsIjoia3dhbWVAZXhhbXBsZS5jb20iLCJyb2xlIjoiY2xpZW50IiwiaWF0IjoxNzc3MDU0ODkzLCJleHAiOjE3NzcxNDEyOTN9.BCj54AiOhWMZjCnHLzztnrNPfF6nap63KZPI06oj59w","type":"text"}],"url":"http://localhost:3000/api/projects"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"589"},{"key":"ETag","value":"W/\"24d-uOO1JcPZ/QAqWUDDBdAuoVTXQhE\""},{"key":"Date","value":"Fri, 24 Apr 2026 18:23:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"title\": \"3-Bedroom House Build\",\n        \"description\": \"Construction of a 3-bedroom house in East Legon\",\n        \"location\": \"East Legon, Accra\",\n        \"startDate\": \"2026-01-15T00:00:00.000Z\",\n        \"status\": \"ongoing\",\n        \"createdAt\": \"2026-04-24T18:21:23.249Z\",\n        \"updatedAt\": \"2026-04-24T18:21:23.249Z\",\n        \"clientId\": 2,\n        \"contractorId\": 4\n    },\n    {\n        \"id\": 3,\n        \"title\": \"Office Renovation\",\n        \"description\": \"Full interior renovation of office building\",\n        \"location\": \"Osu, Accra\",\n        \"startDate\": \"2025-11-10T00:00:00.000Z\",\n        \"status\": \"paused\",\n        \"createdAt\": \"2026-04-24T18:21:23.249Z\",\n        \"updatedAt\": \"2026-04-24T18:21:23.249Z\",\n        \"clientId\": 2,\n        \"contractorId\": 5\n    }\n]"},{"id":"0a6cb284-5cb7-4fad-b4c4-239de1cfa237","name":"Successful GET- All updates","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MiwibmFtZSI6Ikt3YW1lIE1lbnNhaCIsImVtYWlsIjoia3dhbWVAZXhhbXBsZS5jb20iLCJyb2xlIjoiY2xpZW50IiwiaWF0IjoxNzc3MDU0ODkzLCJleHAiOjE3NzcxNDEyOTN9.BCj54AiOhWMZjCnHLzztnrNPfF6nap63KZPI06oj59w","type":"text"}],"url":"http://localhost:3000/api/updates"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"661"},{"key":"ETag","value":"W/\"295-AmhyPiOgRFtFHqMCdfVfmgrz94U\""},{"key":"Date","value":"Fri, 24 Apr 2026 18:24:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"description\": \"Foundation completed and cured\",\n        \"mediaUrl\": \"https://example.com/photos/foundation.jpg\",\n        \"status\": \"verified\",\n        \"createdAt\": \"2026-04-24T18:21:23.249Z\",\n        \"updatedAt\": \"2026-04-24T18:21:23.249Z\",\n        \"projectId\": 1,\n        \"userId\": 4\n    },\n    {\n        \"id\": 2,\n        \"description\": \"Roofing materials delivered to site\",\n        \"mediaUrl\": \"https://example.com/photos/roofing.jpg\",\n        \"status\": \"pending\",\n        \"createdAt\": \"2026-04-24T18:21:23.249Z\",\n        \"updatedAt\": \"2026-04-24T18:21:23.249Z\",\n        \"projectId\": 1,\n        \"userId\": 4\n    },\n    {\n        \"id\": 4,\n        \"description\": \"Electrical rough-in started\",\n        \"mediaUrl\": null,\n        \"status\": \"pending\",\n        \"createdAt\": \"2026-04-24T18:21:23.249Z\",\n        \"updatedAt\": \"2026-04-24T18:21:23.249Z\",\n        \"projectId\": 3,\n        \"userId\": 5\n    }\n]"},{"id":"4b740757-df2c-4940-8528-24fd03ab30ca","name":"Successful GET-All Inspections","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MiwibmFtZSI6Ikt3YW1lIE1lbnNhaCIsImVtYWlsIjoia3dhbWVAZXhhbXBsZS5jb20iLCJyb2xlIjoiY2xpZW50IiwiaWF0IjoxNzc3MDU0ODkzLCJleHAiOjE3NzcxNDEyOTN9.BCj54AiOhWMZjCnHLzztnrNPfF6nap63KZPI06oj59w","type":"text"}],"url":"http://localhost:3000/api/inspections"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"515"},{"key":"ETag","value":"W/\"203-7qU3rO555G+0dxPMdIOwvPAWRTo\""},{"key":"Date","value":"Fri, 24 Apr 2026 18:25:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"status\": \"verified\",\n        \"comments\": \"Foundation meets structural requirements\",\n        \"inspectionDate\": \"2026-02-10T00:00:00.000Z\",\n        \"projectId\": 1,\n        \"inspectorId\": 6,\n        \"updateId\": 1,\n        \"createdAt\": \"2026-04-24T18:21:23.250Z\",\n        \"updatedAt\": \"2026-04-24T18:21:23.250Z\"\n    },\n    {\n        \"id\": 3,\n        \"status\": \"verified\",\n        \"comments\": \"Rough-in routing acceptable; label circuits before drywall\",\n        \"inspectionDate\": \"2026-03-20T00:00:00.000Z\",\n        \"projectId\": 3,\n        \"inspectorId\": 6,\n        \"updateId\": 4,\n        \"createdAt\": \"2026-04-24T18:21:23.250Z\",\n        \"updatedAt\": \"2026-04-24T18:21:23.250Z\"\n    }\n]"}],"_postman_id":"36e50c1d-30a7-4f13-92b9-d79577086c9a"}],"id":"92caacf0-d9d1-4a84-9c74-c2383ec9a0e0","_postman_id":"92caacf0-d9d1-4a84-9c74-c2383ec9a0e0","description":""},{"name":"Get by id","item":[{"name":"Get Users By ID","id":"e67e0afb-56a8-4675-8cb8-b238dcfe5942","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/projects","description":"<p>This gets users by ID</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","projects"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"99f9f212-704e-454e-9874-fd1f7bb3cc54","name":"Sucessful-Get Users By ID","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/users/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"177"},{"key":"ETag","value":"W/\"b1-ZqSoXFnlhSX1ZQntCnWEGRNGCUc\""},{"key":"Date","value":"Wed, 15 Apr 2026 01:44:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"name\": \"Kwame Mensah\",\n    \"email\": \"kwame@example.com\",\n    \"password\": \"password123\",\n    \"role\": \"client\",\n    \"createdAt\": \"2026-04-15T01:39:40.046Z\",\n    \"updatedAt\": \"2026-04-15T01:39:40.046Z\"\n}"},{"id":"808682a5-fb31-4da1-a1be-9c4868f6e95f","name":"Error 404 - User not found","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/users/99"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"26"},{"key":"ETag","value":"W/\"1a-hq/hT0ORGTkTfyRpVCZ/JB/r8Eg\""},{"key":"Date","value":"Wed, 15 Apr 2026 01:46:19 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"User not found\"\n}"}],"_postman_id":"e67e0afb-56a8-4675-8cb8-b238dcfe5942"},{"name":"Get Projects By ID","id":"d07aa2c9-0927-4dd7-b28c-4a3af247257d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<p>This gets projects by ID</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"3c34486e-895f-4569-82a9-e0e4111a8b9b","name":"Sucess-Get Projects By ID","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MiwibmFtZSI6Ikt3YW1lIE1lbnNhaCIsImVtYWlsIjoia3dhbWVAZXhhbXBsZS5jb20iLCJyb2xlIjoiY2xpZW50IiwiaWF0IjoxNzc3MDU0ODkzLCJleHAiOjE3NzcxNDEyOTN9.BCj54AiOhWMZjCnHLzztnrNPfF6nap63KZPI06oj59w","type":"text"}],"url":"http://localhost:3000/api/projects/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"301"},{"key":"ETag","value":"W/\"12d-7Ckp4ketg5S1t9FrBj92DWbJ2lA\""},{"key":"Date","value":"Fri, 24 Apr 2026 18:26:21 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"title\": \"3-Bedroom House Build\",\n    \"description\": \"Construction of a 3-bedroom house in East Legon\",\n    \"location\": \"East Legon, Accra\",\n    \"startDate\": \"2026-01-15T00:00:00.000Z\",\n    \"status\": \"ongoing\",\n    \"createdAt\": \"2026-04-24T18:21:23.249Z\",\n    \"updatedAt\": \"2026-04-24T18:21:23.249Z\",\n    \"clientId\": 2,\n    \"contractorId\": 4\n}"},{"id":"7b921242-7e0e-4dcd-b1c1-74ecf629711a","name":"Error 404-Project not found","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MiwibmFtZSI6Ikt3YW1lIE1lbnNhaCIsImVtYWlsIjoia3dhbWVAZXhhbXBsZS5jb20iLCJyb2xlIjoiY2xpZW50IiwiaWF0IjoxNzc3MDU0ODkzLCJleHAiOjE3NzcxNDEyOTN9.BCj54AiOhWMZjCnHLzztnrNPfF6nap63KZPI06oj59w","type":"text"}],"url":"http://localhost:3000/api/projects/100"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"29"},{"key":"ETag","value":"W/\"1d-WrCC67h8kPllBnfhIr0fj6r5tX0\""},{"key":"Date","value":"Fri, 24 Apr 2026 18:26:46 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Project not found\"\n}"}],"_postman_id":"d07aa2c9-0927-4dd7-b28c-4a3af247257d"},{"name":"Get Inspections By ID","id":"4079f360-6e55-4b9c-9fb9-aeee651be4dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<p>This gets inspections by ID</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"8b9c32c6-f08d-4363-8ace-a983c860ed0c","name":"Sucess-Get Inspections By ID","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MiwibmFtZSI6Ikt3YW1lIE1lbnNhaCIsImVtYWlsIjoia3dhbWVAZXhhbXBsZS5jb20iLCJyb2xlIjoiY2xpZW50IiwiaWF0IjoxNzc3MDU0ODkzLCJleHAiOjE3NzcxNDEyOTN9.BCj54AiOhWMZjCnHLzztnrNPfF6nap63KZPI06oj59w","type":"text"}],"url":"http://localhost:3000/api/inspections/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"559"},{"key":"ETag","value":"W/\"22f-Nj6quwQdmJ8Qy1eBdQzJdqBfAU4\""},{"key":"Date","value":"Fri, 24 Apr 2026 18:27:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"status\": \"verified\",\n    \"comments\": \"Foundation meets structural requirements\",\n    \"inspectionDate\": \"2026-02-10T00:00:00.000Z\",\n    \"projectId\": 1,\n    \"inspectorId\": 6,\n    \"updateId\": 1,\n    \"createdAt\": \"2026-04-24T18:21:23.250Z\",\n    \"updatedAt\": \"2026-04-24T18:21:23.250Z\",\n    \"Project\": {\n        \"id\": 1,\n        \"title\": \"3-Bedroom House Build\",\n        \"description\": \"Construction of a 3-bedroom house in East Legon\",\n        \"location\": \"East Legon, Accra\",\n        \"startDate\": \"2026-01-15T00:00:00.000Z\",\n        \"status\": \"ongoing\",\n        \"createdAt\": \"2026-04-24T18:21:23.249Z\",\n        \"updatedAt\": \"2026-04-24T18:21:23.249Z\",\n        \"clientId\": 2,\n        \"contractorId\": 4\n    }\n}"},{"id":"3be18f42-47fa-4200-b56c-aa9582ed4561","name":"Error 404-Inspection not found","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/inspections/100"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"32"},{"key":"ETag","value":"W/\"20-1m6SVRdSnXmZr1MSgy8i275/5m0\""},{"key":"Date","value":"Wed, 15 Apr 2026 01:50:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Inspection not found\"\n}"}],"_postman_id":"4079f360-6e55-4b9c-9fb9-aeee651be4dc"},{"name":"Get Updates By ID","id":"c97aa43e-8df0-455d-b70c-4e63c8c769d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<p>This gets updates by ID</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"d94b4e71-4591-4d79-8fd3-c98d9b99648b","name":"Sucess-Get Updates By ID","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MiwibmFtZSI6Ikt3YW1lIE1lbnNhaCIsImVtYWlsIjoia3dhbWVAZXhhbXBsZS5jb20iLCJyb2xlIjoiY2xpZW50IiwiaWF0IjoxNzc3MDU0ODkzLCJleHAiOjE3NzcxNDEyOTN9.BCj54AiOhWMZjCnHLzztnrNPfF6nap63KZPI06oj59w","type":"text"}],"url":"http://localhost:3000/api/updates/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"545"},{"key":"ETag","value":"W/\"221-czBq2qBh0XesUAMhE6c5SeGaeyQ\""},{"key":"Date","value":"Fri, 24 Apr 2026 18:29:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"description\": \"Foundation completed and cured\",\n    \"mediaUrl\": \"https://example.com/photos/foundation.jpg\",\n    \"status\": \"verified\",\n    \"createdAt\": \"2026-04-24T18:21:23.249Z\",\n    \"updatedAt\": \"2026-04-24T18:21:23.249Z\",\n    \"projectId\": 1,\n    \"userId\": 4,\n    \"Project\": {\n        \"id\": 1,\n        \"title\": \"3-Bedroom House Build\",\n        \"description\": \"Construction of a 3-bedroom house in East Legon\",\n        \"location\": \"East Legon, Accra\",\n        \"startDate\": \"2026-01-15T00:00:00.000Z\",\n        \"status\": \"ongoing\",\n        \"createdAt\": \"2026-04-24T18:21:23.249Z\",\n        \"updatedAt\": \"2026-04-24T18:21:23.249Z\",\n        \"clientId\": 2,\n        \"contractorId\": 4\n    }\n}"},{"id":"ebc66257-7f99-4451-98c5-121a8426d91f","name":"Error 404-Update not found","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/updates/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"233"},{"key":"ETag","value":"W/\"e9-gt9iIjZPwj2lzo1tcVp8/dAiOJI\""},{"key":"Date","value":"Wed, 15 Apr 2026 01:54:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"description\": \"Foundation completed and cured\",\n    \"mediaUrl\": \"https://example.com/photos/foundation.jpg\",\n    \"status\": \"verified\",\n    \"createdAt\": \"2026-04-15T01:39:40.050Z\",\n    \"updatedAt\": \"2026-04-15T01:39:40.050Z\",\n    \"projectId\": 1,\n    \"userId\": 2\n}"}],"_postman_id":"c97aa43e-8df0-455d-b70c-4e63c8c769d6"}],"id":"28dc62e7-de2a-4235-8df8-933f0e69f474","_postman_id":"28dc62e7-de2a-4235-8df8-933f0e69f474","description":""},{"name":"Create","item":[{"name":"New User","id":"c145d6dc-5368-4d8a-95d2-e5b4fb35dbf0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"description":"<p>Inserts a new user</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"cbfb2d4f-5d4f-42f1-857d-04c77190280a","name":"Sucess-New User","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwibmFtZSI6IkV1Z2VuZSBMb3RzdSIsImVtYWlsIjoibG90c3VldWdlbmVAZ21haWwuY29tIiwicm9sZSI6ImFkbWluIiwiaWF0IjoxNzc3MDY0MTk4LCJleHAiOjE3NzcxNTA1OTh9.mfh1QEcd1Lynz9czs-Yo1oz_-8q-WCv_2lSUqKGmRYc","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"John Doe\",\n  \"email\": \"john@example.com\",\n  \"password\": \"password123\",\n  \"role\": \"client\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/users"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"69"},{"key":"ETag","value":"W/\"45-1ND9ENH845tFuPf4U7MIkgQB+xA\""},{"key":"Date","value":"Fri, 24 Apr 2026 20:57:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 7,\n    \"name\": \"John Doe\",\n    \"email\": \"john@example.com\",\n    \"role\": \"client\"\n}"},{"id":"f24e52c2-9f89-421a-a570-b4711fbb8ef1","name":"Error 400-Name, email, and password are required","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwibmFtZSI6IkV1Z2VuZSBMb3RzdSIsImVtYWlsIjoibG90c3VldWdlbmVAZ21haWwuY29tIiwicm9sZSI6ImFkbWluIiwiaWF0IjoxNzc3MDY0MTk4LCJleHAiOjE3NzcxNTA1OTh9.mfh1QEcd1Lynz9czs-Yo1oz_-8q-WCv_2lSUqKGmRYc","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"John Doe\",\n  \"password\": \"password123\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/users"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"50"},{"key":"ETag","value":"W/\"32-Iv86dnSy+jY759TMRz6EI/bssps\""},{"key":"Date","value":"Fri, 24 Apr 2026 21:01:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Name, email, and password are required\"\n}"},{"id":"a30a1e58-823a-4e53-af17-0aefb46c1b86","name":"Error 400 - User with this email already exists","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwibmFtZSI6IkV1Z2VuZSBMb3RzdSIsImVtYWlsIjoibG90c3VldWdlbmVAZ21haWwuY29tIiwicm9sZSI6ImFkbWluIiwiaWF0IjoxNzc3MDY0Njc4LCJleHAiOjE3NzcxNTEwNzh9.-R6XlgEI5jAxXWSb9H1JdL1KUguwLtK6PP88c4fIaUg","type":"text"}],"body":{"mode":"raw","raw":"        {       \"name\": \"Eugene Lotsu\",\n                \"email\": \"lotsueugene@gmail.com\",\n                \"password\": \"password123\"\n            }","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/users"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-4yhx94le+lOp+hMu8rhzVN9UJsM\""},{"key":"Date","value":"Fri, 24 Apr 2026 21:07:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"User with this email already exists\"\n}"},{"id":"0bc165d7-f90f-49fd-b96f-d72ff5793f92","name":"Error 403-Access denied. Admin role required","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MiwibmFtZSI6Ikt3YW1lIE1lbnNhaCIsImVtYWlsIjoia3dhbWVAZXhhbXBsZS5jb20iLCJyb2xlIjoiY2xpZW50IiwiaWF0IjoxNzc3MDU0ODkzLCJleHAiOjE3NzcxNDEyOTN9.BCj54AiOhWMZjCnHLzztnrNPfF6nap63KZPI06oj59w","type":"text"}],"body":{"mode":"raw","raw":"{\n               \"name\": \"Adjoa Boateng\",\n                \"email\": \"adjoa@example.com\",\n                \"password\": \"password123\",\n                \"role\": \"client\"\n            }","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/users"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-9ZOi9fwWJX9AbsMDAzwGawCQnaw\""},{"key":"Date","value":"Fri, 24 Apr 2026 18:41:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Access denied. Admin role required.\"\n}"}],"_postman_id":"c145d6dc-5368-4d8a-95d2-e5b4fb35dbf0"},{"name":"New Projects","id":"bf599970-9b84-45c6-bf76-e48116db73d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"description":"<p>Inserts a new project</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"976bb093-d71e-4535-8333-3bd855f89669","name":"Success-New Projects","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"New Office Building\",\n  \"description\": \"10-story commercial building\",\n  \"location\": \"Accra\",\n  \"startDate\": \"2026-05-01\",\n  \"status\": \"ongoing\",\n  \"clientId\": 1,\n  \"contractorId\": 2\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/projects"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"268"},{"key":"ETag","value":"W/\"10c-M6OjL44GCCe0oFpZrOv5yUiFrMw\""},{"key":"Date","value":"Wed, 15 Apr 2026 02:06:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 4,\n    \"title\": \"New Office Building\",\n    \"description\": \"10-story commercial building\",\n    \"location\": \"Accra\",\n    \"startDate\": \"2026-05-01T00:00:00.000Z\",\n    \"status\": \"ongoing\",\n    \"clientId\": 1,\n    \"contractorId\": 2,\n    \"updatedAt\": \"2026-04-15T02:06:43.329Z\",\n    \"createdAt\": \"2026-04-15T02:06:43.329Z\"\n}"},{"id":"6ea6ddf8-dd2f-4c05-9d67-bf7195be790f","name":"Error 400-Title, location, and startDate are required","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"New Office Building\",\n  \"description\": \"10-story commercial building\",\n  \"startDate\": \"2026-05-01\",\n  \"status\": \"active\",\n  \"clientId\": 1,\n  \"contractorId\": 2\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/projects"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"55"},{"key":"ETag","value":"W/\"37-RZEHteKjoVWglV5vVn0peqjYtUQ\""},{"key":"Date","value":"Wed, 15 Apr 2026 02:08:29 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Title, location, and startDate are required\"\n}"}],"_postman_id":"bf599970-9b84-45c6-bf76-e48116db73d7"},{"name":"New Inspection","id":"0c7cc773-4376-4efc-9fc6-70cc4a368b72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"description":"<p>Inserts a new inspection</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"d77c3f15-341a-4e21-93d9-d4c558f2753b","name":"Sucess-New Inspection","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"verified\",\n  \"comments\": \"Foundation looks solid\",\n  \"inspectionDate\": \"2026-04-14\",\n  \"projectId\": 1,\n  \"inspectorId\": 1,\n  \"updateId\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/inspections"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"229"},{"key":"ETag","value":"W/\"e5-/IPF70FwgD65ldO2S8n8UHfoHy4\""},{"key":"Date","value":"Wed, 15 Apr 2026 02:11:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 4,\n    \"status\": \"verified\",\n    \"comments\": \"Foundation looks solid\",\n    \"inspectionDate\": \"2026-04-14T00:00:00.000Z\",\n    \"projectId\": 1,\n    \"inspectorId\": 1,\n    \"updateId\": 1,\n    \"updatedAt\": \"2026-04-15T02:11:59.525Z\",\n    \"createdAt\": \"2026-04-15T02:11:59.525Z\"\n}"},{"id":"09fd19c2-5ed8-4849-a1ab-a612f04f3e51","name":"Error 400-Status, projectId, inspectorId, and updateId are required","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"comments\": \"Foundation looks solid\",\n  \"inspectionDate\": \"2026-04-14\",\n  \"projectId\": 1,\n  \"inspectorId\": 1,\n  \"updateId\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/inspections"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"69"},{"key":"ETag","value":"W/\"45-sxkKJUOXQd1YwdOZowQOnyik76g\""},{"key":"Date","value":"Wed, 15 Apr 2026 02:11:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Status, projectId, inspectorId, and updateId are required\"\n}"},{"id":"a9a4b821-effa-42aa-b0b9-e89c50fd7dd6","name":"Error 401 - Access denied. No token provided","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"comments\": \"Foundation looks solid\",\n  \"inspectionDate\": \"2026-04-14\",\n  \"projectId\": 1,\n  \"inspectorId\": 1,\n  \"updateId\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/inspections"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"45"},{"key":"ETag","value":"W/\"2d-OKFaJYZLk9Vw7Mn+6fXtn/5t+Ak\""},{"key":"Date","value":"Fri, 24 Apr 2026 18:56:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Access denied. No token provided.\"\n}"},{"id":"ff82bc96-bdc3-4d22-88a2-c44f0d10e342","name":"Error 403- Forbidden: insufficient role","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MiwibmFtZSI6Ikt3YW1lIE1lbnNhaCIsImVtYWlsIjoia3dhbWVAZXhhbXBsZS5jb20iLCJyb2xlIjoiY2xpZW50IiwiaWF0IjoxNzc3MDU0ODkzLCJleHAiOjE3NzcxNDEyOTN9.BCj54AiOhWMZjCnHLzztnrNPfF6nap63KZPI06oj59w","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"comments\": \"Foundation looks solid\",\n  \"inspectionDate\": \"2026-04-14\",\n  \"projectId\": 1,\n  \"inspectorId\": 1,\n  \"updateId\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/inspections"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"40"},{"key":"ETag","value":"W/\"28-UJAco3D7FLHxKJKeaTWeerjDF4E\""},{"key":"Date","value":"Fri, 24 Apr 2026 18:48:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Forbidden: insufficient role\"\n}"}],"_postman_id":"0c7cc773-4376-4efc-9fc6-70cc4a368b72"},{"name":"New Update","id":"62d272a0-feee-47d4-b97f-603ba44dda92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"description":"<p>Inserts a new update</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"1d81f5db-a1b1-4b2f-b14b-e2ba85aee562","name":"Sucess-New Update","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"description\": \"Foundation poured and curing\",\n  \"mediaUrl\": \"https://example.com/photo.jpg\",\n  \"status\": \"pending\",\n  \"projectId\": 1,\n  \"userId\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/updates"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"218"},{"key":"ETag","value":"W/\"da-z2eAtvYjIIU+UdwCbfJeCAfCoc4\""},{"key":"Date","value":"Wed, 15 Apr 2026 02:15:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 4,\n    \"description\": \"Foundation poured and curing\",\n    \"mediaUrl\": \"https://example.com/photo.jpg\",\n    \"status\": \"pending\",\n    \"projectId\": 1,\n    \"userId\": 1,\n    \"updatedAt\": \"2026-04-15T02:15:14.590Z\",\n    \"createdAt\": \"2026-04-15T02:15:14.590Z\"\n}"},{"id":"1428a7a2-6519-41b2-8bab-88600a3e72ba","name":"Error 400-Description, projectId, and userId are required","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"mediaUrl\": \"https://example.com/photo.jpg\",\n  \"status\": \"in_progress\",\n  \"projectId\": 1,\n  \"userId\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/updates"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"59"},{"key":"ETag","value":"W/\"3b-YAaPFUr4Gp+jJ3ev4iqlIJ317S4\""},{"key":"Date","value":"Wed, 15 Apr 2026 02:16:12 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Description, projectId, and userId are required\"\n}"},{"id":"3b226174-341c-4b4a-ae21-0f0dec515460","name":"Error 403-Forbidden: insufficient role","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MiwibmFtZSI6Ikt3YW1lIE1lbnNhaCIsImVtYWlsIjoia3dhbWVAZXhhbXBsZS5jb20iLCJyb2xlIjoiY2xpZW50IiwiaWF0IjoxNzc3MDU0ODkzLCJleHAiOjE3NzcxNDEyOTN9.BCj54AiOhWMZjCnHLzztnrNPfF6nap63KZPI06oj59w","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"description\": \"Foundation poured and curing\",\n  \"mediaUrl\": \"https://example.com/photo.jpg\",\n  \"status\": \"pending\",\n  \"projectId\": 1,\n  \"userId\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/updates"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"40"},{"key":"ETag","value":"W/\"28-UJAco3D7FLHxKJKeaTWeerjDF4E\""},{"key":"Date","value":"Fri, 24 Apr 2026 19:00:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Forbidden: insufficient role\"\n}"},{"id":"3da9364e-78a6-49e7-94db-43de566fd8ab","name":"Error 401-Access denied. No token provided.","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"description\": \"Foundation poured and curing\",\n  \"mediaUrl\": \"https://example.com/photo.jpg\",\n  \"status\": \"pending\",\n  \"projectId\": 1,\n  \"userId\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/inspections"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"45"},{"key":"ETag","value":"W/\"2d-OKFaJYZLk9Vw7Mn+6fXtn/5t+Ak\""},{"key":"Date","value":"Fri, 24 Apr 2026 19:02:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Access denied. No token provided.\"\n}"}],"_postman_id":"62d272a0-feee-47d4-b97f-603ba44dda92"}],"id":"1ad1018e-aa03-4a7a-a01f-516fd99e47e4","_postman_id":"1ad1018e-aa03-4a7a-a01f-516fd99e47e4","description":""},{"name":"Update","item":[{"name":"Update User Details","id":"2c8ecfbc-8107-4ba0-a450-584d6435db84","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"description":"<p>Update existing user details</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"6bf5414b-6eab-4aa2-bd1d-0b4c583d1f27","name":"Sucess-Update User Details","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"John Eugene\",\n  \"email\": \"john@example.com\",\n  \"password\": \"password123\",\n  \"role\": \"client\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/users/4"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"175"},{"key":"ETag","value":"W/\"af-tOz1ygAhVoxbwan+dZyfFVogeMc\""},{"key":"Date","value":"Wed, 15 Apr 2026 02:22:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 4,\n    \"name\": \"John Eugene\",\n    \"email\": \"john@example.com\",\n    \"password\": \"password123\",\n    \"role\": \"client\",\n    \"createdAt\": \"2026-04-15T01:59:52.942Z\",\n    \"updatedAt\": \"2026-04-15T02:21:50.546Z\"\n}"},{"id":"ded25842-3bd6-480b-933f-ecadb057e03e","name":"Error 404-User not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"John Eugene\",\n  \"email\": \"john@example.com\",\n  \"password\": \"password123\",\n  \"role\": \"client\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/users/44"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"26"},{"key":"ETag","value":"W/\"1a-hq/hT0ORGTkTfyRpVCZ/JB/r8Eg\""},{"key":"Date","value":"Wed, 15 Apr 2026 02:23:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"User not found\"\n}"}],"_postman_id":"2c8ecfbc-8107-4ba0-a450-584d6435db84"},{"name":"Update Project Details","id":"e5556033-8fca-44b1-9a4f-dfd7b1bb58df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"description":"<p>Updates existing projects details</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"402d9279-34f3-47a5-9926-5b4e2f767acf","name":"Sucess-Update Project Details","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MiwibmFtZSI6Ikt3YW1lIE1lbnNhaCIsImVtYWlsIjoia3dhbWVAZXhhbXBsZS5jb20iLCJyb2xlIjoiY2xpZW50IiwiaWF0IjoxNzc3MDU0ODkzLCJleHAiOjE3NzcxNDEyOTN9.BCj54AiOhWMZjCnHLzztnrNPfF6nap63KZPI06oj59w","type":"text"}],"body":{"mode":"raw","raw":"{\n        \"id\": 1,\n        \"title\": \"3-Bedroom House Build\",\n        \"description\": \"Construction of a 3-bedroom house in East Legon\",\n        \"location\": \"East Legon, Accra\",\n        \"status\": \"completed\"\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/projects/3"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"303"},{"key":"ETag","value":"W/\"12f-MzE5j+Jvlj4FQj8bQk6wqk+iRKI\""},{"key":"Date","value":"Fri, 24 Apr 2026 18:34:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 3,\n    \"title\": \"3-Bedroom House Build\",\n    \"description\": \"Construction of a 3-bedroom house in East Legon\",\n    \"location\": \"East Legon, Accra\",\n    \"startDate\": \"2025-11-10T00:00:00.000Z\",\n    \"status\": \"completed\",\n    \"createdAt\": \"2026-04-24T18:21:23.249Z\",\n    \"updatedAt\": \"2026-04-24T18:31:31.783Z\",\n    \"clientId\": 2,\n    \"contractorId\": 5\n}"},{"id":"09356d1c-adec-4a57-9187-fbef4ab594ca","name":"Error 404-Project not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"paused\",\n  \"description\": \"Project on hold pending permits\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/projects/100"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"29"},{"key":"ETag","value":"W/\"1d-WrCC67h8kPllBnfhIr0fj6r5tX0\""},{"key":"Date","value":"Wed, 15 Apr 2026 02:55:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Project not found\"\n}"}],"_postman_id":"e5556033-8fca-44b1-9a4f-dfd7b1bb58df"},{"name":"Change Update Details","id":"ce6fc838-98b0-4c04-8e23-cc406bb136de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"description":"<p>Changes existing updates</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"d800a578-502d-4c3d-a26e-9fc449d1e4db","name":"Sucess-Change Update Details","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"description\": \"Foundation fully cured and inspected\",\n  \"status\": \"verified\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/updates/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"239"},{"key":"ETag","value":"W/\"ef-nUR0cNGT/R1qQ8TXPMbYowzbrWA\""},{"key":"Date","value":"Wed, 15 Apr 2026 02:29:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"description\": \"Foundation fully cured and inspected\",\n    \"mediaUrl\": \"https://example.com/photos/foundation.jpg\",\n    \"status\": \"verified\",\n    \"createdAt\": \"2026-04-15T01:39:40.050Z\",\n    \"updatedAt\": \"2026-04-15T02:28:29.988Z\",\n    \"projectId\": 1,\n    \"userId\": 2\n}"},{"id":"2285fad9-a094-41f8-90fb-57914eb09c15","name":"Error 404-Update not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"description\": \"Foundation fully cured and inspected\",\n  \"status\": \"verified\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/updates/100"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"28"},{"key":"ETag","value":"W/\"1c-+Rv+D+0jQvHwv81PqW6Yn7dyQGU\""},{"key":"Date","value":"Wed, 15 Apr 2026 02:29:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Update not found\"\n}"}],"_postman_id":"ce6fc838-98b0-4c04-8e23-cc406bb136de"},{"name":"Update Inpection Details","id":"85c511f1-a41c-4857-a9d7-dcb56be1f61f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"description":"<p>Updates existing inspection details</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"ceb97d37-25af-49f5-a881-025668824413","name":"Sucess-Update Inspection Details","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"rejected\",\n  \"comments\": \"Needs reinforcement on the east wall\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/inspections/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"243"},{"key":"ETag","value":"W/\"f3-kd9eDNklFi2rTKn80FNd20Nzuwg\""},{"key":"Date","value":"Wed, 15 Apr 2026 02:37:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"status\": \"rejected\",\n    \"comments\": \"Needs reinforcement on the east wall\",\n    \"inspectionDate\": \"2026-02-10T00:00:00.000Z\",\n    \"projectId\": 1,\n    \"inspectorId\": 3,\n    \"updateId\": 1,\n    \"createdAt\": \"2026-04-15T01:39:40.051Z\",\n    \"updatedAt\": \"2026-04-15T02:35:36.074Z\"\n}"},{"id":"575a468c-ee88-4e45-aa77-6829bff87307","name":"Error 404-Inspection not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"status\": \"rejected\",\n  \"comments\": \"Needs reinforcement on the east wall\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/inspections/100"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"32"},{"key":"ETag","value":"W/\"20-1m6SVRdSnXmZr1MSgy8i275/5m0\""},{"key":"Date","value":"Wed, 15 Apr 2026 02:37:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Inspection not found\"\n}"}],"_postman_id":"85c511f1-a41c-4857-a9d7-dcb56be1f61f"}],"id":"22661ef1-434b-4a9e-9cfd-f028bd7c457e","_postman_id":"22661ef1-434b-4a9e-9cfd-f028bd7c457e","description":""},{"name":"Delete","item":[{"name":"Delete User","id":"154b2cc2-7456-4844-bbbb-92949d5e7c89","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"description":"<p>Deletes a user</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"06d351d8-71e7-4988-b8d8-e80702e8caee","name":"Sucess-Delete User","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3000/api/users/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"39"},{"key":"ETag","value":"W/\"27-27o4zzUjhHNmthTJyia4gBCjpos\""},{"key":"Date","value":"Wed, 15 Apr 2026 02:41:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User deleted successfully\"\n}"},{"id":"1275da4a-19ba-4afc-abee-768f3ad848ef","name":"Error 404-User not found","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3000/api/users/100"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"26"},{"key":"ETag","value":"W/\"1a-hq/hT0ORGTkTfyRpVCZ/JB/r8Eg\""},{"key":"Date","value":"Wed, 15 Apr 2026 02:42:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"User not found\"\n}"}],"_postman_id":"154b2cc2-7456-4844-bbbb-92949d5e7c89"},{"name":"Delete Projects","id":"e93e9881-d1ff-465e-957f-745923528e3d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"description":"<p>Deletes a project</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"0ad87aad-3803-4f2d-aa99-1a73bd6a28d3","name":"Sucess-Delete Projects","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MiwibmFtZSI6Ikt3YW1lIE1lbnNhaCIsImVtYWlsIjoia3dhbWVAZXhhbXBsZS5jb20iLCJyb2xlIjoiY2xpZW50IiwiaWF0IjoxNzc3MDU0ODkzLCJleHAiOjE3NzcxNDEyOTN9.BCj54AiOhWMZjCnHLzztnrNPfF6nap63KZPI06oj59w","type":"text"}],"url":"http://localhost:3000/api/projects/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"42"},{"key":"ETag","value":"W/\"2a-TVq++3xl9bnfuNWHopYYHkYmeK4\""},{"key":"Date","value":"Fri, 24 Apr 2026 18:35:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Project deleted successfully\"\n}"},{"id":"cbdec266-1766-4e6d-a700-4eff5f4c74fa","name":"Error 404-Project not found","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3000/api/projects/100"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"29"},{"key":"ETag","value":"W/\"1d-WrCC67h8kPllBnfhIr0fj6r5tX0\""},{"key":"Date","value":"Wed, 15 Apr 2026 02:43:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Project not found\"\n}"}],"_postman_id":"e93e9881-d1ff-465e-957f-745923528e3d"},{"name":"Delete Inspection","id":"abf4388d-ae72-46f3-ad9b-c7c1875d99aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"description":"<p>Deletes an inspection</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"37292334-0f89-4b82-9cb1-8b09dbb79963","name":"Sucess-Delete Inspection","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3000/api/inspections/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"45"},{"key":"ETag","value":"W/\"2d-oQQ1ShvoDcruy0BOZL+Qvkkn7Nw\""},{"key":"Date","value":"Wed, 15 Apr 2026 02:44:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Inspection deleted successfully\"\n}"},{"id":"9f52241b-2925-4f57-84a5-60f0303072af","name":"Error 404-Inpection not found","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3000/api/inspections/2"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"32"},{"key":"ETag","value":"W/\"20-1m6SVRdSnXmZr1MSgy8i275/5m0\""},{"key":"Date","value":"Wed, 15 Apr 2026 02:45:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Inspection not found\"\n}"},{"id":"92d7da12-8203-4b84-a0f1-03ab88cba9a8","name":"Error 403-Forbidden: insufficient role","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MiwibmFtZSI6Ikt3YW1lIE1lbnNhaCIsImVtYWlsIjoia3dhbWVAZXhhbXBsZS5jb20iLCJyb2xlIjoiY2xpZW50IiwiaWF0IjoxNzc3MDU0ODkzLCJleHAiOjE3NzcxNDEyOTN9.BCj54AiOhWMZjCnHLzztnrNPfF6nap63KZPI06oj59w","type":"text"}],"url":"http://localhost:3000/api/inspections/1"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"40"},{"key":"ETag","value":"W/\"28-UJAco3D7FLHxKJKeaTWeerjDF4E\""},{"key":"Date","value":"Fri, 24 Apr 2026 18:38:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Forbidden: insufficient role\"\n}"}],"_postman_id":"abf4388d-ae72-46f3-ad9b-c7c1875d99aa"},{"name":"Delete Update","id":"50af76c3-4d90-48fa-9571-2408f99f8afd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"description":"<p>Deletes an update</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"a81a1d5b-444f-4853-8b99-13270181f30f","name":"Sucess-Delete Update","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/updates/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"41"},{"key":"ETag","value":"W/\"29-OArUSuaSmXPa+6GKxvWUnALdopQ\""},{"key":"Date","value":"Wed, 15 Apr 2026 02:46:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Update deleted successfully\"\n}"},{"id":"6eee7a52-20b6-4449-923d-4a1cf4d14f01","name":"Error 404-Update not found","originalRequest":{"method":"DELETE","header":[]},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"50af76c3-4d90-48fa-9571-2408f99f8afd"}],"id":"8587b491-8f4d-475b-abbe-0d6e625615c6","_postman_id":"8587b491-8f4d-475b-abbe-0d6e625615c6","description":""}]}