{"info":{"_postman_id":"c3f486c8-d97e-469d-973b-a7c18b3974e1","name":"Common","description":"<html><head></head><body><p>Common Module APIs</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"16254597","collectionId":"c3f486c8-d97e-469d-973b-a7c18b3974e1","publishedId":"2sA35MxJVV","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-04-06T17:49:44.000Z"},"item":[{"name":"Auth","item":[{"name":"Signup","id":"0cc3e789-e7fc-4f88-9e15-d554aec277ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"fullName\": \"Abhisekh Upadhaya\",\r\n    \"email\": \"abhisek0721@gmail.com\",\r\n    \"password\": \"@Upa1234\",\r\n    \"role\": \"mentee\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/auth/signup","urlObject":{"path":["api","auth","signup"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"986bfe52-5081-4c5e-a241-4a722e2b87e3","name":"400 - Invalid Payload","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/auth/signup"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"211"},{"key":"ETag","value":"W/\"d3-8trlIp1MPqpXjZbjdQEAMvnQr9s\""},{"key":"Date","value":"Tue, 02 Apr 2024 07:05:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [],\n    \"message\": \"Invalid Request\",\n    \"errors\": [\n        \"fullName must be a string\",\n        \"email must be a string\",\n        \"password must be a string\",\n        \"role must be one of the following values: mentor, mentee\"\n    ],\n    \"code\": \"STD-VLD-ERR\"\n}"},{"id":"333d9815-7f9d-40a8-9e19-c62f6bcebef0","name":"400 - Email Already Exists","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"fullName\": \"Abhisekh Upadhaya\",\r\n    \"email\": \"abhisek0721@gmail.com\",\r\n    \"password\": \"@Upa1234\",\r\n    \"role\": \"mentee\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/auth/signup"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"112"},{"key":"ETag","value":"W/\"70-zz2lYhytkznCbqXsavRxL1yeNGc\""},{"key":"Date","value":"Tue, 02 Apr 2024 07:16:21 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [],\n    \"message\": \"Invalid Request\",\n    \"errors\": \"User with this email already registered!\",\n    \"code\": \"STD-VLD-ERR\"\n}"},{"id":"668d4195-e2b3-4c27-81f6-26b662e862a3","name":"200 - Mentee Signup (successful)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"fullName\": \"Abhisekh Upadhaya\",\r\n    \"email\": \"abhisek0721@gmail.com\",\r\n    \"password\": \"@Upa1234\",\r\n    \"role\": \"mentee\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/auth/signup"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"460"},{"key":"ETag","value":"W/\"1cc-aXbVndgiHLxKOt1TKvLKXJadtR4\""},{"key":"Date","value":"Tue, 02 Apr 2024 07:39:06 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"userData\": {\n            \"_id\": \"660bb61a435b1ba36a7b33e4\",\n            \"fullName\": \"Abhisekh Upadhaya\",\n            \"email\": \"abhisek0721@gmail.com\",\n            \"role\": \"mentee\",\n            \"isVerified\": false\n        },\n        \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NjBiYjYxYTQzNWIxYmEzNmE3YjMzZTQiLCJlbWFpbCI6ImFiaGlzZWswNzIxQGdtYWlsLmNvbSIsInJvbGUiOiJtZW50ZWUiLCJpYXQiOjE3MTIwNDM1NDYsImV4cCI6MTcxMjMwMjc0Nn0.-s2PX8-U2JgYbQD_ZRpNeO6lL1aD5o8jLIZDM1Jdxhk\"\n    },\n    \"message\": \"Successful\",\n    \"code\": null,\n    \"errors\": null\n}"},{"id":"edb5f1b4-6351-478a-90e1-21fb9e0aa85f","name":"200 - Mentor Signup (successful)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"fullName\": \"Abhisekh Upadhaya\",\r\n    \"email\": \"abhisek@gmail.com\",\r\n    \"password\": \"@Upa1234\",\r\n    \"role\": \"mentor\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/auth/signup"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"451"},{"key":"ETag","value":"W/\"1c3-clFLyhE8DXrzgI3ElEZ5xZMzZKQ\""},{"key":"Date","value":"Tue, 02 Apr 2024 07:40:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"userData\": {\n            \"_id\": \"660bb668435b1ba36a7b33e8\",\n            \"fullName\": \"Abhisekh Upadhaya\",\n            \"email\": \"abhisek@gmail.com\",\n            \"role\": \"mentor\",\n            \"isVerified\": false\n        },\n        \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NjBiYjY2ODQzNWIxYmEzNmE3YjMzZTgiLCJlbWFpbCI6ImFiaGlzZWtAZ21haWwuY29tIiwicm9sZSI6Im1lbnRvciIsImlhdCI6MTcxMjA0MzYyNCwiZXhwIjoxNzEyMzAyODI0fQ.KAigL4PkAka8MuYZy4cjLluYBsE137eKPSOb-U0LPW8\"\n    },\n    \"message\": \"Successful\",\n    \"code\": null,\n    \"errors\": null\n}"}],"_postman_id":"0cc3e789-e7fc-4f88-9e15-d554aec277ff"},{"name":"Login","id":"0a844e67-61d0-4368-a3d7-ee6ee6bd61b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"abhisek@gmail.com\",\r\n    \"password\": \"@Upa1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/auth/login","urlObject":{"path":["api","auth","login"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"f1434b15-9fc9-4686-8914-8a05d5e44544","name":"400 - Invalid Payload","originalRequest":{"method":"POST","header":[],"url":"{{BASE_URL}}/api/auth/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"124"},{"key":"ETag","value":"W/\"7c-0pDE7QUK/zHmGAuojy18SVDpvqs\""},{"key":"Date","value":"Tue, 02 Apr 2024 07:31:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [],\n    \"message\": \"Invalid Request\",\n    \"errors\": [\n        \"email must be a string\",\n        \"password must be a string\"\n    ],\n    \"code\": \"STD-VLD-ERR\"\n}"},{"id":"250801a7-b56b-4543-b8ea-b7af3bdb0ac9","name":"400 - Invalid Email (email not registered)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"abhi@gmail.com\",\r\n    \"password\": \"#abhi32\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/auth/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"107"},{"key":"ETag","value":"W/\"6b-krqtFarqUucIjxyCocjtQp2vvqA\""},{"key":"Date","value":"Tue, 02 Apr 2024 07:32:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [],\n    \"message\": \"Invalid Request\",\n    \"errors\": \"User with this email doesn't exist!\",\n    \"code\": \"STD-VLD-ERR\"\n}"},{"id":"ec54e208-7b4c-46bc-9331-b7a2cf6c2b63","name":"400 - Incorrect Password","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"abhisek0721@gmail.com\",\r\n    \"password\": \"#abhi32\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/auth/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"91"},{"key":"ETag","value":"W/\"5b-xZLNF9wiqhwHdLe/rCq+IoyIdzw\""},{"key":"Date","value":"Tue, 02 Apr 2024 07:42:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [],\n    \"message\": \"Invalid Request\",\n    \"errors\": \"Incorrect Password!\",\n    \"code\": \"STD-VLD-ERR\"\n}"},{"id":"c4d9fea9-120b-4667-88d2-f750874a6967","name":"200 - Login Successful","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"abhisek0721@gmail.com\",\r\n    \"password\": \"@Upa1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/auth/login"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"460"},{"key":"ETag","value":"W/\"1cc-TTfkKRQjCpdabw0XiBxtvemNRD4\""},{"key":"Date","value":"Tue, 02 Apr 2024 07:43:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"userData\": {\n            \"_id\": \"660bb61a435b1ba36a7b33e4\",\n            \"fullName\": \"Abhisekh Upadhaya\",\n            \"email\": \"abhisek0721@gmail.com\",\n            \"role\": \"mentee\",\n            \"isVerified\": false\n        },\n        \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NjBiYjYxYTQzNWIxYmEzNmE3YjMzZTQiLCJlbWFpbCI6ImFiaGlzZWswNzIxQGdtYWlsLmNvbSIsInJvbGUiOiJtZW50ZWUiLCJpYXQiOjE3MTIwNDM3ODgsImV4cCI6MTcxMjMwMjk4OH0.m7ynBIfDLJQgGMg5hJJVQpon6gFyCQRUuwSnpjjDmhA\"\n    },\n    \"message\": \"Successful\",\n    \"code\": null,\n    \"errors\": null\n}"}],"_postman_id":"0a844e67-61d0-4368-a3d7-ee6ee6bd61b6"}],"id":"3638f679-14a4-4082-bf1a-2de70e1c626f","_postman_id":"3638f679-14a4-4082-bf1a-2de70e1c626f","description":""},{"name":"User","item":[{"name":"Change Password","id":"d04c7cac-6ce6-4ab9-adf9-ef29894349fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{ACCESS_TOKEN}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"currentPassword\": \"@Upa1234\",\r\n    \"newPassword\": \"@Abhi123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/user/change-password","urlObject":{"path":["api","user","change-password"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"debf6745-45c1-4413-8e8e-4bcdb09ba4b8","name":"400 - Incorrect Password","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"currentPassword\": \"@Upa123r\",\r\n    \"newPassword\": \"@Abhi123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/user/change-password"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"91"},{"key":"ETag","value":"W/\"5b-xZLNF9wiqhwHdLe/rCq+IoyIdzw\""},{"key":"Date","value":"Tue, 02 Apr 2024 11:23:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [],\n    \"message\": \"Invalid Request\",\n    \"errors\": \"Incorrect Password!\",\n    \"code\": \"STD-VLD-ERR\"\n}"},{"id":"3a12157c-b431-43ae-b17e-31bde5742ee7","name":"200 - Password Updated Successfully","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"currentPassword\": \"@Upa1234\",\r\n    \"newPassword\": \"@Abhi123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/user/change-password"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"166"},{"key":"ETag","value":"W/\"a6-rRi2jinCOxTfJIItxpgY/TKOhUM\""},{"key":"Date","value":"Tue, 02 Apr 2024 11:31:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"acknowledged\": true,\n        \"modifiedCount\": 1,\n        \"upsertedId\": null,\n        \"upsertedCount\": 0,\n        \"matchedCount\": 1\n    },\n    \"message\": \"Password has been updated!\",\n    \"code\": null,\n    \"errors\": null\n}"}],"_postman_id":"d04c7cac-6ce6-4ab9-adf9-ef29894349fe"},{"name":"Edit User Profile","id":"70f09cb0-6ee3-4113-b034-d3ff8ed2c778","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{ACCESS_TOKEN}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"fullName\": \"Nisit Upadhaya\",\r\n    \"phoneNumber\": \"+916901168653\",\r\n    \"location\": {\r\n        \"longitude\": 557.36,\r\n        \"latitude\": 843.78,\r\n        \"roadName\": \"\",\r\n        \"city\": \"Chandigarh\",\r\n        \"state\": \"Punjab\",\r\n        \"pincode\": \"140307\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/user/edit-user","urlObject":{"path":["api","user","edit-user"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"3d13c52b-d81b-4b46-b122-dd69b421b8cf","name":"200 - Updated Profile (name and phone-number)","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"fullName\": \"Nisit Upadhaya\",\r\n    \"phoneNumber\": \"+916901168653\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/user/edit-user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"343"},{"key":"ETag","value":"W/\"157-yiy7So8Y4Snx8Yt7Y9F0u1lAIeA\""},{"key":"Date","value":"Tue, 02 Apr 2024 12:18:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"_id\": \"660bf2bf57ee421908d9bdfa\",\n        \"fullName\": \"Nisit Upadhaya\",\n        \"email\": \"abhisek0721@gmail.com\",\n        \"role\": \"mentee\",\n        \"profileImage\": null,\n        \"phoneNumber\": \"+916901168653\",\n        \"isVerified\": false,\n        \"createdAt\": \"2024-04-02T11:57:51.756Z\",\n        \"updatedAt\": \"2024-04-02T12:18:57.014Z\",\n        \"__v\": 0\n    },\n    \"message\": \"User profile has been updated!\",\n    \"code\": null,\n    \"errors\": null\n}"},{"id":"9fc7679f-5820-4355-9169-daeff02144de","name":"200 - Updated Profile (only phone-number)","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"phoneNumber\": \"+919365674094\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/user/edit-user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"343"},{"key":"ETag","value":"W/\"157-Ha5T6zBC733utjLb8BnQdiUwQ6E\""},{"key":"Date","value":"Tue, 02 Apr 2024 12:21:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"_id\": \"660bf2bf57ee421908d9bdfa\",\n        \"fullName\": \"Nisit Upadhaya\",\n        \"email\": \"abhisek0721@gmail.com\",\n        \"role\": \"mentee\",\n        \"profileImage\": null,\n        \"phoneNumber\": \"+919365674094\",\n        \"isVerified\": false,\n        \"createdAt\": \"2024-04-02T11:57:51.756Z\",\n        \"updatedAt\": \"2024-04-02T12:21:57.084Z\",\n        \"__v\": 0\n    },\n    \"message\": \"User profile has been updated!\",\n    \"code\": null,\n    \"errors\": null\n}"},{"id":"7316b998-ef26-4e15-9cc5-627d93c33efd","name":"200 - Updated Profile (only name)","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"fullName\": \"Abhisekh Upadhaya\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/user/edit-user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"346"},{"key":"ETag","value":"W/\"15a-1RTftYVmUVo2V7cUUTtydvlMe0E\""},{"key":"Date","value":"Tue, 02 Apr 2024 12:22:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"_id\": \"660bf2bf57ee421908d9bdfa\",\n        \"fullName\": \"Abhisekh Upadhaya\",\n        \"email\": \"abhisek0721@gmail.com\",\n        \"role\": \"mentee\",\n        \"profileImage\": null,\n        \"phoneNumber\": \"+919365674094\",\n        \"isVerified\": false,\n        \"createdAt\": \"2024-04-02T11:57:51.756Z\",\n        \"updatedAt\": \"2024-04-02T12:22:52.962Z\",\n        \"__v\": 0\n    },\n    \"message\": \"User profile has been updated!\",\n    \"code\": null,\n    \"errors\": null\n}"},{"id":"e116ca98-7883-44db-bb6f-75713bed17d6","name":"200 - Update Location (example-1)","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"fullName\": \"Nisit Upadhaya\",\r\n    \"phoneNumber\": \"+916901168653\",\r\n    \"location\": {\r\n        \"longitude\": null,\r\n        \"latitude\": null,\r\n        \"roadName\": \"Landran Road\",\r\n        \"city\": \"Chandigarh\",\r\n        \"state\": \"Punjab\",\r\n        \"pincode\": \"140307\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/user/edit-user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"507"},{"key":"ETag","value":"W/\"1fb-yo8BlwNwRqLTDqmpNEMz1xqdy8U\""},{"key":"Date","value":"Tue, 02 Apr 2024 14:35:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"_id\": \"660c15e53b844ef86c22239d\",\n        \"fullName\": \"Nisit Upadhaya\",\n        \"email\": \"abhisek0721@gmail.com\",\n        \"role\": \"mentee\",\n        \"profileImageKey\": null,\n        \"phoneNumber\": \"+916901168653\",\n        \"location\": {\n            \"latitude\": null,\n            \"longitude\": null,\n            \"roadName\": \"Landran Road\",\n            \"city\": \"Chandigarh\",\n            \"state\": \"Punjab\",\n            \"pincode\": \"140307\",\n            \"_id\": \"660c17ccdf861f3b3d717250\"\n        },\n        \"isVerified\": false,\n        \"createdAt\": \"2024-04-02T14:27:49.844Z\",\n        \"updatedAt\": \"2024-04-02T14:35:56.207Z\",\n        \"__v\": 0\n    },\n    \"message\": \"User profile has been updated!\",\n    \"code\": null,\n    \"errors\": null\n}"},{"id":"ccbc5ad9-4a65-405c-96c4-800242e5fd4f","name":"200 - Update Location (example-2)","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"fullName\": \"Nisit Upadhaya\",\r\n    \"phoneNumber\": \"+916901168653\",\r\n    \"location\": {\r\n        \"longitude\": null,\r\n        \"latitude\": null,\r\n        \"roadName\": \"\",\r\n        \"city\": \"Chandigarh\",\r\n        \"state\": \"Punjab\",\r\n        \"pincode\": \"140307\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/user/edit-user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"495"},{"key":"ETag","value":"W/\"1ef-sldJJY5mpSIJrwG9HW4TMskbKfk\""},{"key":"Date","value":"Tue, 02 Apr 2024 14:38:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"_id\": \"660c15e53b844ef86c22239d\",\n        \"fullName\": \"Nisit Upadhaya\",\n        \"email\": \"abhisek0721@gmail.com\",\n        \"role\": \"mentee\",\n        \"profileImageKey\": null,\n        \"phoneNumber\": \"+916901168653\",\n        \"location\": {\n            \"latitude\": null,\n            \"longitude\": null,\n            \"roadName\": \"\",\n            \"city\": \"Chandigarh\",\n            \"state\": \"Punjab\",\n            \"pincode\": \"140307\",\n            \"_id\": \"660c184fdf861f3b3d71725a\"\n        },\n        \"isVerified\": false,\n        \"createdAt\": \"2024-04-02T14:27:49.844Z\",\n        \"updatedAt\": \"2024-04-02T14:38:07.814Z\",\n        \"__v\": 0\n    },\n    \"message\": \"User profile has been updated!\",\n    \"code\": null,\n    \"errors\": null\n}"},{"id":"e160c560-8bc6-4817-af00-2f1cf9fe0963","name":"200 - Update Location (example-3)","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"fullName\": \"Nisit Upadhaya\",\r\n    \"phoneNumber\": \"+916901168653\",\r\n    \"location\": {\r\n        \"longitude\": 557.36,\r\n        \"latitude\": 843.78,\r\n        \"roadName\": \"\",\r\n        \"city\": \"Chandigarh\",\r\n        \"state\": \"Punjab\",\r\n        \"pincode\": \"140307\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/user/edit-user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"499"},{"key":"ETag","value":"W/\"1f3-m5f3K+0Yi/7fUV/trCcm/iKFDdM\""},{"key":"Date","value":"Tue, 02 Apr 2024 14:47:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"_id\": \"660c15e53b844ef86c22239d\",\n        \"fullName\": \"Nisit Upadhaya\",\n        \"email\": \"abhisek0721@gmail.com\",\n        \"role\": \"mentee\",\n        \"profileImageKey\": null,\n        \"phoneNumber\": \"+916901168653\",\n        \"location\": {\n            \"latitude\": 843.78,\n            \"longitude\": 557.36,\n            \"roadName\": \"\",\n            \"city\": \"Chandigarh\",\n            \"state\": \"Punjab\",\n            \"pincode\": \"140307\",\n            \"_id\": \"660c1a86a54e455287b30e33\"\n        },\n        \"isVerified\": false,\n        \"createdAt\": \"2024-04-02T14:27:49.844Z\",\n        \"updatedAt\": \"2024-04-02T14:47:34.415Z\",\n        \"__v\": 0\n    },\n    \"message\": \"User profile has been updated!\",\n    \"code\": null,\n    \"errors\": null\n}"}],"_postman_id":"70f09cb0-6ee3-4113-b034-d3ff8ed2c778"},{"name":"Get User","id":"27694e6a-b4bd-45de-a363-10c7b040ee9d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{ACCESS_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{BASE_URL}}/api/user","urlObject":{"path":["api","user"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"1bc8e247-a32f-43ba-9d77-625712a9e918","name":"200 - User Data (successful)","originalRequest":{"method":"GET","header":[],"url":"{{BASE_URL}}/api/user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"445"},{"key":"ETag","value":"W/\"1bd-Op/vounnXNTK3jnl/PPLz69m62w\""},{"key":"Date","value":"Tue, 02 Apr 2024 14:29:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"_id\": \"660c15e53b844ef86c22239d\",\n        \"fullName\": \"Abhisekh Upadhaya\",\n        \"email\": \"abhisek0721@gmail.com\",\n        \"role\": \"mentee\",\n        \"profileImageKey\": null,\n        \"phoneNumber\": null,\n        \"location\": {\n            \"latitude\": null,\n            \"longitude\": null,\n            \"roadName\": \"\",\n            \"city\": \"\",\n            \"state\": \"\",\n            \"pincode\": \"\",\n            \"_id\": \"660c15e53b844ef86c22239c\"\n        },\n        \"isVerified\": false,\n        \"createdAt\": \"2024-04-02T14:27:49.844Z\",\n        \"updatedAt\": \"2024-04-02T14:27:49.844Z\",\n        \"__v\": 0\n    },\n    \"message\": \"Successful\",\n    \"code\": null,\n    \"errors\": null\n}"},{"id":"7671857a-a58b-42c0-9d34-eda026255260","name":"401 - Unauthorized","originalRequest":{"method":"GET","header":[],"url":"{{BASE_URL}}/api/user"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"106"},{"key":"ETag","value":"W/\"6a-z6Gwu8DVxpwObWJai+qyUxQ3BA4\""},{"key":"Date","value":"Tue, 02 Apr 2024 21:11:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [],\n    \"message\": \"You are not authorized to access\",\n    \"errors\": \"Unauthorized\",\n    \"code\": \"UNAUTHORIZED-ERR\"\n}"}],"_postman_id":"27694e6a-b4bd-45de-a363-10c7b040ee9d"},{"name":"Upload Profile Image","id":"49973c87-cfdc-47fc-98a9-e07e88e3d8a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{ACCESS_TOKEN}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"profileImageUri\": \"https://avatars.githubusercontent.com/u/46020813?v=4\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/user/upload-profile-image","urlObject":{"path":["api","user","upload-profile-image"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"496aa0e8-c2a9-45c7-97a6-19f8cd3a3be3","name":"200 - Upload Profile Image (successful)","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"profileImageUri\": \"https://avatars.githubusercontent.com/u/46020813?v=4\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/user/upload-profile-image"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"491"},{"key":"ETag","value":"W/\"1eb-nJX3jMu/4uEokZtWz1F0vKaADbY\""},{"key":"Date","value":"Sat, 06 Apr 2024 11:00:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"_id\": \"660c6bf37fcd31f7607e3736\",\n        \"fullName\": \"Abhisekh Upadhaya\",\n        \"email\": \"abhisek@gmail.com\",\n        \"role\": \"mentor\",\n        \"profileImageKey\": \"https://avatars.githubusercontent.com/u/46020813?v=4\",\n        \"phoneNumber\": null,\n        \"location\": {\n            \"latitude\": null,\n            \"longitude\": null,\n            \"roadName\": \"\",\n            \"city\": \"\",\n            \"state\": \"\",\n            \"pincode\": \"\",\n            \"_id\": \"660c6bf37fcd31f7607e3735\"\n        },\n        \"isVerified\": false,\n        \"createdAt\": \"2024-04-02T20:34:59.365Z\",\n        \"updatedAt\": \"2024-04-06T11:00:36.802Z\",\n        \"__v\": 0\n    },\n    \"message\": \"Successful\",\n    \"code\": null,\n    \"errors\": null\n}"}],"_postman_id":"49973c87-cfdc-47fc-98a9-e07e88e3d8a8"}],"id":"6387be01-8482-4390-9d07-6e3d10eda7d1","_postman_id":"6387be01-8482-4390-9d07-6e3d10eda7d1","description":""},{"name":"Message","item":[{"name":"Send Message","id":"d2dcf51b-d055-407c-b29f-c155aad645d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{ACCESS_TOKEN}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"receiverUserId\": \"660fe4c9909588dc2ab753aa\",\r\n    \"content\": \"Hello!\"\r\n    // \"replyTo\": \"661052823b0e26984632f062\" // replyTo is a messageId\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/message/send-message","urlObject":{"path":["api","message","send-message"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"7ebb8981-ca92-4f3d-931e-78146eaf0e10","name":"400 - Some fields are missing in payload","originalRequest":{"method":"POST","header":[],"url":"{{BASE_URL}}/api/message/send-message"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"132"},{"key":"ETag","value":"W/\"84-A9/042goqJbhzwG1XEpDbGrD3SQ\""},{"key":"Date","value":"Fri, 05 Apr 2024 19:24:46 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [],\n    \"message\": \"Invalid Request\",\n    \"errors\": [\n        \"receiverUserId must be a string\",\n        \"content must be a string\"\n    ],\n    \"code\": \"STD-VLD-ERR\"\n}"},{"id":"154c7735-eaef-409c-9ceb-862bbfe9cc57","name":"400 - Invalid receiverUserId","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"receiverUserId\": \"\",\r\n    \"content\": \"Hi! How are you?\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/message/send-message"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"94"},{"key":"ETag","value":"W/\"5e-g87Oa7hZ2P+r75FSrlJlvZboSKQ\""},{"key":"Date","value":"Fri, 05 Apr 2024 19:30:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [],\n    \"message\": \"Invalid Request\",\n    \"errors\": \"Invalid receiverUserId\",\n    \"code\": \"STD-VLD-ERR\"\n}"},{"id":"4cc14533-0848-4008-9dec-fcab6b0cbdce","name":"400 - Receiver with receiverUserId doesn't exist","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"receiverUserId\": \"660fdb1c2e1f83fa6a96692f\",\r\n    \"content\": \"Hi! How are you?\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/message/send-message"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"131"},{"key":"ETag","value":"W/\"83-NN8IVmSukyQoyMbrXEWwWy8LF0Q\""},{"key":"Date","value":"Fri, 05 Apr 2024 19:31:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [],\n    \"message\": \"Invalid Request\",\n    \"errors\": \"Receiver with userId 660fdb1c2e1f83fa6a96692f doesn't exist\",\n    \"code\": \"STD-VLD-ERR\"\n}"},{"id":"48934b7f-c06a-4ef1-9f7f-e49b89a10217","name":"201 - Sent Message (successful)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"receiverUserId\": \"660f110ba5cb42b7545877ff\",\r\n    \"content\": \"Hi! How are you?\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/message/send-message"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"310"},{"key":"ETag","value":"W/\"136-BLLAtGuPn8zhdwlGL+xlAxcqmKA\""},{"key":"Date","value":"Fri, 05 Apr 2024 19:35:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"sender\": \"660c6bf37fcd31f7607e3736\",\n        \"receiver\": \"660f110ba5cb42b7545877ff\",\n        \"content\": \"Hi! How are you?\",\n        \"read\": false,\n        \"deleted\": false,\n        \"_id\": \"661052823b0e26984632f062\",\n        \"createdAt\": \"2024-04-05T19:35:30.380Z\",\n        \"updatedAt\": \"2024-04-05T19:35:30.380Z\",\n        \"__v\": 0\n    },\n    \"message\": \"Successful\",\n    \"code\": null,\n    \"errors\": null\n}"},{"id":"ff2d258f-a2c1-491f-9319-644b1f8008f0","name":"201 - Reply Message (successful)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"receiverUserId\": \"660f110ba5cb42b7545877ff\",\r\n    \"content\": \"How was you day?\",\r\n    \"replyTo\": \"661052823b0e26984632f062\" // replyTo is a messageId\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/message/send-message"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"347"},{"key":"ETag","value":"W/\"15b-LJIlXZLCnhBx8JiycFPcRI1e0Zk\""},{"key":"Date","value":"Fri, 05 Apr 2024 19:38:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"sender\": \"660c6bf37fcd31f7607e3736\",\n        \"receiver\": \"660f110ba5cb42b7545877ff\",\n        \"content\": \"How was you day?\",\n        \"read\": false,\n        \"deleted\": false,\n        \"replyTo\": \"661052823b0e26984632f062\",\n        \"_id\": \"661053283b0e26984632f067\",\n        \"createdAt\": \"2024-04-05T19:38:16.780Z\",\n        \"updatedAt\": \"2024-04-05T19:38:16.780Z\",\n        \"__v\": 0\n    },\n    \"message\": \"Successful\",\n    \"code\": null,\n    \"errors\": null\n}"}],"_postman_id":"d2dcf51b-d055-407c-b29f-c155aad645d5"},{"name":"Get Messages","id":"4ebb1f32-75cc-4019-ac0a-c9ef1d2730b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{ACCESS_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{BASE_URL}}/api/message/get-messages/:senderUserId","urlObject":{"path":["api","message","get-messages",":senderUserId"],"host":["{{BASE_URL}}"],"query":[],"variable":[{"type":"any","value":"660f110ba5cb42b7545877ff","key":"senderUserId"}]}},"response":[{"id":"5ffc2f08-bbc3-4ce3-8e5c-f5d2bd150ca4","name":"200 - Get Messages","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{BASE_URL}}/api/message/get-messages/:senderUserId","host":["{{BASE_URL}}"],"path":["api","message","get-messages",":senderUserId"],"variable":[{"key":"senderUserId","value":"660f110ba5cb42b7545877ff"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"570"},{"key":"ETag","value":"W/\"23a-4T4lgq/fHGpW1Tfku4kxI/brGFI\""},{"key":"Date","value":"Fri, 05 Apr 2024 21:47:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"_id\": \"661052823b0e26984632f062\",\n            \"sender\": \"660c6bf37fcd31f7607e3736\",\n            \"receiver\": \"660f110ba5cb42b7545877ff\",\n            \"content\": \"Hi! How are you?\",\n            \"read\": false,\n            \"createdAt\": \"2024-04-05T19:35:30.380Z\",\n            \"updatedAt\": \"2024-04-05T19:35:30.380Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"661053283b0e26984632f067\",\n            \"sender\": \"660c6bf37fcd31f7607e3736\",\n            \"receiver\": \"660f110ba5cb42b7545877ff\",\n            \"content\": \"How was you day?\",\n            \"read\": false,\n            \"replyTo\": \"661052823b0e26984632f062\",\n            \"createdAt\": \"2024-04-05T19:38:16.780Z\",\n            \"updatedAt\": \"2024-04-05T19:38:16.780Z\",\n            \"__v\": 0\n        }\n    ],\n    \"message\": \"Successful\",\n    \"code\": null,\n    \"errors\": null\n}"},{"id":"c0377f44-0e61-4044-b9c7-c58b3766efcb","name":"400 - Sender's userId doesn't exist","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{BASE_URL}}/api/message/get-messages/:senderUserId","host":["{{BASE_URL}}"],"path":["api","message","get-messages",":senderUserId"],"variable":[{"key":"senderUserId","value":"660f110ba5cb42b7545677ff"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"129"},{"key":"ETag","value":"W/\"81-cxhOISvq27DY+LIEhJrv6jUMNzs\""},{"key":"Date","value":"Fri, 05 Apr 2024 21:52:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [],\n    \"message\": \"Invalid Request\",\n    \"errors\": \"Sender with userId 660f110ba5cb42b7545677ff doesn't exist\",\n    \"code\": \"STD-VLD-ERR\"\n}"},{"id":"245afe12-98a5-4a6e-b1e3-4a9e962c1b0c","name":"400 - Invalid senderUserId","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{BASE_URL}}/api/message/get-messages/:senderUserId","host":["{{BASE_URL}}"],"path":["api","message","get-messages",":senderUserId"],"variable":[{"key":"senderUserId","value":"660f110ba5cb42b7545877f"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"92"},{"key":"ETag","value":"W/\"5c-I1bNtTqoaHDcJKijqVTOj0CpI1k\""},{"key":"Date","value":"Fri, 05 Apr 2024 22:04:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [],\n    \"message\": \"Invalid Request\",\n    \"errors\": \"Invalid senderUserId\",\n    \"code\": \"STD-VLD-ERR\"\n}"}],"_postman_id":"4ebb1f32-75cc-4019-ac0a-c9ef1d2730b9"},{"name":"Get Message Contact Users","id":"1303bd24-6e72-4c58-be1e-039dd7448beb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{ACCESS_TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{BASE_URL}}/api/message/message-contact-users","urlObject":{"path":["api","message","message-contact-users"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"8b1de8bd-047a-4813-a66b-bd75300eacac","name":"200 - Message Contact Users (successful)","originalRequest":{"method":"GET","header":[],"url":"{{BASE_URL}}/api/message/message-contact-users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1619"},{"key":"ETag","value":"W/\"653-/5Icevt8CnrT6Kc7Fxno/RSGZRU\""},{"key":"Date","value":"Fri, 05 Apr 2024 22:36:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"_id\": \"660c6bf37fcd31f7607e3736\",\n            \"fullName\": \"Abhisekh Upadhaya\",\n            \"email\": \"abhisek@gmail.com\",\n            \"role\": \"mentor\",\n            \"profileImageKey\": null,\n            \"phoneNumber\": null,\n            \"location\": {\n                \"latitude\": null,\n                \"longitude\": null,\n                \"roadName\": \"\",\n                \"city\": \"\",\n                \"state\": \"\",\n                \"pincode\": \"\",\n                \"_id\": \"660c6bf37fcd31f7607e3735\"\n            },\n            \"isVerified\": false,\n            \"createdAt\": \"2024-04-02T20:34:59.365Z\",\n            \"updatedAt\": \"2024-04-02T20:34:59.365Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"660f110ba5cb42b7545877ff\",\n            \"fullName\": \"Abhisekh Upadhaya\",\n            \"email\": \"abhisek0721@gmail.com\",\n            \"role\": \"mentee\",\n            \"profileImageKey\": null,\n            \"phoneNumber\": null,\n            \"location\": {\n                \"latitude\": null,\n                \"longitude\": null,\n                \"roadName\": \"\",\n                \"city\": \"\",\n                \"state\": \"\",\n                \"pincode\": \"\",\n                \"_id\": \"660f110ba5cb42b7545877fe\"\n            },\n            \"isVerified\": false,\n            \"createdAt\": \"2024-04-04T20:43:55.326Z\",\n            \"updatedAt\": \"2024-04-04T20:43:55.326Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"660fc21f29da9749bffa4922\",\n            \"fullName\": \"Vishnu Upadhaybggghgha\",\n            \"email\": \"viggggsuffffhnu@gmaill.com\",\n            \"role\": \"mentor\",\n            \"profileImageKey\": null,\n            \"phoneNumber\": null,\n            \"location\": {\n                \"latitude\": null,\n                \"longitude\": null,\n                \"roadName\": \"\",\n                \"city\": \"\",\n                \"state\": \"\",\n                \"pincode\": \"\",\n                \"_id\": \"660fc21f29da9749bffa4921\"\n            },\n            \"isVerified\": false,\n            \"createdAt\": \"2024-04-05T09:19:27.484Z\",\n            \"updatedAt\": \"2024-04-05T09:19:27.484Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"660fe4c9909588dc2ab753aa\",\n            \"fullName\": \"Rahul kumar\",\n            \"email\": \"rahulkumarkudra2004@gmail.com\",\n            \"role\": \"mentor\",\n            \"profileImageKey\": null,\n            \"phoneNumber\": null,\n            \"location\": {\n                \"latitude\": null,\n                \"longitude\": null,\n                \"roadName\": \"\",\n                \"city\": \"\",\n                \"state\": \"\",\n                \"pincode\": \"\",\n                \"_id\": \"660fe4c9909588dc2ab753a9\"\n            },\n            \"isVerified\": false,\n            \"createdAt\": \"2024-04-05T11:47:21.749Z\",\n            \"updatedAt\": \"2024-04-05T11:47:21.749Z\",\n            \"__v\": 0\n        }\n    ],\n    \"message\": \"Successful\",\n    \"code\": null,\n    \"errors\": null\n}"}],"_postman_id":"1303bd24-6e72-4c58-be1e-039dd7448beb"},{"name":"Edit Message","id":"40420132-04a3-47b4-893d-d1a2d183815d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{ACCESS_TOKEN}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"messageId\": \"661052823b0e26984632f062\",\r\n    \"content\": \"Hi! How are you doing?\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/message/edit-message","urlObject":{"path":["api","message","edit-message"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"8cdfa72a-12ae-4de7-a331-b5d890efc911","name":"200 - Message Updated Successfully","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"messageId\": \"661052823b0e26984632f062\",\r\n    \"content\": \"Hi! How are you doing?\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/message/edit-message"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"316"},{"key":"ETag","value":"W/\"13c-1siiE3IzEGZpEiOgojYo8cNPTWg\""},{"key":"Date","value":"Fri, 05 Apr 2024 23:01:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"_id\": \"661052823b0e26984632f062\",\n        \"sender\": \"660c6bf37fcd31f7607e3736\",\n        \"receiver\": \"660f110ba5cb42b7545877ff\",\n        \"content\": \"Hi! How are you doing?\",\n        \"read\": false,\n        \"deleted\": false,\n        \"createdAt\": \"2024-04-05T19:35:30.380Z\",\n        \"updatedAt\": \"2024-04-05T23:01:24.018Z\",\n        \"__v\": 0\n    },\n    \"message\": \"Successful\",\n    \"code\": null,\n    \"errors\": null\n}"},{"id":"b7b0add2-1ff1-4cc9-80ab-4d6d49d7fe9b","name":"400 - Invalid messageId","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"messageId\": \"66fsf\",\r\n    \"content\": \"Hi! How are you doing?\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/message/edit-message"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"89"},{"key":"ETag","value":"W/\"59-N/5dOFfVKj+PQdzos4YgiRXGj/A\""},{"key":"Date","value":"Fri, 05 Apr 2024 23:03:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [],\n    \"message\": \"Invalid Request\",\n    \"errors\": \"Invalid messageId\",\n    \"code\": \"STD-VLD-ERR\"\n}"},{"id":"0f29ac94-e6a7-4a96-b9f5-09d776cd17d4","name":"400 - Message doesn't exist","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"messageId\": \"661052823b0e26984632f062\",\r\n    \"content\": \"Hi! How are you doing?\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/message/edit-message"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"133"},{"key":"ETag","value":"W/\"85-WO+LTOsXlJSGouDlZUg6ogGw8kQ\""},{"key":"Date","value":"Fri, 05 Apr 2024 23:13:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [],\n    \"message\": \"Invalid Request\",\n    \"errors\": \"Message with messageId 661052823b0e26984632f062 doesn't exist\",\n    \"code\": \"STD-VLD-ERR\"\n}"}],"_postman_id":"40420132-04a3-47b4-893d-d1a2d183815d"},{"name":"Delete Message","id":"fa4ef5a9-0661-4f41-9c71-06bdf3a25fe4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{ACCESS_TOKEN}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{BASE_URL}}/api/message/delete-message/:messageId","urlObject":{"path":["api","message","delete-message",":messageId"],"host":["{{BASE_URL}}"],"query":[],"variable":[{"type":"any","value":"661052823b0e26984632f062","key":"messageId"}]}},"response":[{"id":"125feaa4-a52c-492f-bcee-7addfbd84563","name":"200 - Deleted Successfully","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{BASE_URL}}/api/message/delete-message/:messageId","host":["{{BASE_URL}}"],"path":["api","message","delete-message",":messageId"],"variable":[{"key":"messageId","value":"661052823b0e26984632f062"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"96"},{"key":"ETag","value":"W/\"60-D+RD4K5Oc9DXvcEGpvcdVOA7LCM\""},{"key":"Date","value":"Fri, 05 Apr 2024 23:11:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"acknowledged\": true,\n        \"deletedCount\": 1\n    },\n    \"message\": \"Successful\",\n    \"code\": null,\n    \"errors\": null\n}"}],"_postman_id":"fa4ef5a9-0661-4f41-9c71-06bdf3a25fe4"}],"id":"5616a396-4310-4af9-8788-a0c349322979","description":"<p>One user can send and receive messages to another user irrespective of user's role.</p>\n","_postman_id":"5616a396-4310-4af9-8788-a0c349322979"}]}