{"info":{"_postman_id":"22734346-445b-4967-ba48-872bca0bf83b","name":"CRM","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"11388716","collectionId":"22734346-445b-4967-ba48-872bca0bf83b","publishedId":"T1DwbDUu","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-08-03T12:42:07.000Z"},"item":[{"name":"Authentication ","item":[{"name":"Signup","event":[{"listen":"test","script":{"id":"3af5bbcb-8bb8-44f3-903a-340d2bccad05","exec":["pm.environment.set(\"TOKEN\", pm.response.json().token)"],"type":"text/javascript"}}],"id":"1b4899db-ecb4-4d2f-af17-3a7fa5e00ffd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{   \n    \"firstname\": \"sourabh\",\n    \"lastname\": \"raj\",\n    \"email\": \"cdf@gmail.com\",\n    \"password\": \"adminadmin\",\n    \"passwordConfirm\": \"adminadmin\",\n    \"role\": \"employee\"\n\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/signup","urlObject":{"path":["user","signup"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1b4899db-ecb4-4d2f-af17-3a7fa5e00ffd"},{"name":"Account activation link","id":"9089811a-04ee-4bb9-9c17-2d32200986ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"{{URL}}/users/verifypassword/b19324f5bb217289f01aa3d4201a76b29e2dd890222f48b231039f2319214719","description":"<p>THis request is used to activate the guest account</p>\n","urlObject":{"path":["users","verifypassword","b19324f5bb217289f01aa3d4201a76b29e2dd890222f48b231039f2319214719"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9089811a-04ee-4bb9-9c17-2d32200986ff"},{"name":"Login","event":[{"listen":"test","script":{"id":"48420e94-6c1a-4a64-a675-18e231a83731","exec":["pm.environment.set(\"TOKEN\", pm.response.json().token)"],"type":"text/javascript"}}],"id":"8f26cb84-6364-467e-acdd-db45101af6a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"admin@gmail.com\",\n    \"password\": \"adminadmin\",\n    \"passwordConfirm\": \"adminadmin\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/login","urlObject":{"path":["user","login"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8f26cb84-6364-467e-acdd-db45101af6a4"},{"name":"Forgot Password","id":"488799b8-f26c-492f-9b80-52d7f04c2cdb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"rajwadesourabh@gmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/forgotpassword","description":"<p>POST Request to reset password in case user forgot the password.</p>\n","urlObject":{"path":["user","forgotpassword"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"488799b8-f26c-492f-9b80-52d7f04c2cdb"},{"name":"Reset Password","id":"745c8118-e73f-4182-b7a5-8eea46d0ea30","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"password\": \"hellooIamnew\",\n    \"passwordConfirm\": \"hellooIamnew\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/resetpassword/81f8e7cf40cf3165ab581f24ff8ef974f75f803595b2be267b317c07fb41952c","description":"<p>PATCH REQUEST to update the new password and passwordConfirm. </p>\n","urlObject":{"path":["user","resetpassword","81f8e7cf40cf3165ab581f24ff8ef974f75f803595b2be267b317c07fb41952c"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"745c8118-e73f-4182-b7a5-8eea46d0ea30"},{"name":"Update user details","id":"9867d09b-405c-4ade-942e-7b738b2fbc0f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{   \n    \"firstname\": \"chintu\",\n    \"lastname\": \"sdfdsfs\",\n    \"email\":\"asdassf52sdasda@gmail.com\",\n    \"phone\": 834324324324\n\n    \n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/updatedetails","description":"<p>PUT REQUEST to update the details of the user after login.</p>\n","urlObject":{"path":["user","updatedetails"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9867d09b-405c-4ade-942e-7b738b2fbc0f"},{"name":"Update Password","id":"58717f7b-ca88-4179-bd3a-851b6cbee523","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"currentPassword\": \"adminadmin\",\n    \"newPassword\": \"newpasswordhaiye\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/user/updatepassword","description":"<p>PUT REQUEST to update the user password</p>\n","urlObject":{"path":["user","updatepassword"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"58717f7b-ca88-4179-bd3a-851b6cbee523"},{"name":"Logout","id":"f825b5fe-3689-433c-8b98-52177bc5b078","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/user/logout","description":"<p>GET REQUEST to clear token from cookie</p>\n","urlObject":{"path":["user","logout"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f825b5fe-3689-433c-8b98-52177bc5b078"}],"id":"0ade09fa-174a-4de4-8783-c290e7e03d61","description":"<p>All the employee authentication for the CRM</p>\n","_postman_id":"0ade09fa-174a-4de4-8783-c290e7e03d61"},{"name":"Contacts","item":[{"name":"Contacts","id":"25f78a8a-27da-429a-b984-1fcdecd001e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"{{URL}}/contacts/all","description":"<p>Get request to fetch  list of all the contacts</p>\n","urlObject":{"path":["contacts","all"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"25f78a8a-27da-429a-b984-1fcdecd001e0"},{"name":"Create Contact","event":[{"listen":"test","script":{"id":"325f40a3-af75-4e1e-9e4c-805fe9c4ca84","exec":[""],"type":"text/javascript"}}],"id":"cc2c9121-016a-4726-bd57-03a0ac02733e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"ads\",\n    \"email\": \"bcdb@gmail.com\",\n    \"phone\": 548979338979,\n    \"description\": \"Hello I am firstestt contact\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/contacts/create","description":"<p>Create contact</p>\n","urlObject":{"path":["contacts","create"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cc2c9121-016a-4726-bd57-03a0ac02733e"},{"name":"Delete Contact","id":"1158391b-4605-46b5-84b2-3a7224b279dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/contacts/delete/5f26c2c6b65d3f3d12aba1df","description":"<p>DELETE Request to delete the contact information.</p>\n<p>Permitted to Admin and Manager.</p>\n","urlObject":{"path":["contacts","delete","5f26c2c6b65d3f3d12aba1df"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1158391b-4605-46b5-84b2-3a7224b279dc"},{"name":"Find contact by Email","id":"fe3eda4e-89ae-4a15-8dfd-0c13780aa5fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"sfsafef@gmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/contacts/getbyemail","description":"<p>Find the contacts by using email id</p>\n","urlObject":{"path":["contacts","getbyemail"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fe3eda4e-89ae-4a15-8dfd-0c13780aa5fe"},{"name":"Update Contact","id":"6facf90f-18f8-4330-a2c9-5d0eaf7bb83f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"cid\": \"5f26c31682af103d2bf11784\",\n    \"name\": \"jante nahi ho kya\"\n\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/contacts/update","description":"<p>PATCH request to update the contact details</p>\n","urlObject":{"path":["contacts","update"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6facf90f-18f8-4330-a2c9-5d0eaf7bb83f"}],"id":"4371e7b1-6c09-4100-89c1-01d75eafbbb5","description":"<p>These are contacts routes. This contain APIs for creating contacts, list contacts, view a single contact and Filter contact.</p>\n","_postman_id":"4371e7b1-6c09-4100-89c1-01d75eafbbb5"},{"name":"Leads","item":[{"name":"Create Lead","id":"c465e169-2a93-4c27-9c67-e533cb237328","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"fullname\": \"hammehaidam\",\n    \"email\": \"xyz@gmail.com\",\n    \"mobile\": 932432121214,\n    \"city\": \"kyubatau\",\n    \"gender\": \"female\",\n    \"department\": \"\",\n    \"status\": \"contacted\",\n    \"priority\": \"low\",\n    \"source\": \"email\",\n    \"description\": \"Hello I am here to get stuff.\",\n    \"companyname\": \"Zinga\",\n    \"assignedTo\": \"Me\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/leads/create","description":"<p>Create Lead with email, phone, description, companyName</p>\n","urlObject":{"path":["leads","create"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c465e169-2a93-4c27-9c67-e533cb237328"},{"name":"List All Leads","id":"3935560f-363f-4f0e-9e07-82599ad66246","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"{{URL}}/leads/view","description":"<p>Display array of leads </p>\n","urlObject":{"path":["leads","view"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3935560f-363f-4f0e-9e07-82599ad66246"},{"name":"Select Lead","id":"c38b6cac-e4d3-42a7-9914-f40824678bd2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"{{URL}}/leads/view/5f26770a0ae9ea346d94753c","description":"<p>GET request to select a lead from list of leads in Database</p>\n","urlObject":{"path":["leads","view","5f26770a0ae9ea346d94753c"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c38b6cac-e4d3-42a7-9914-f40824678bd2"},{"name":"Update Lead ","id":"c0640710-900d-46c5-a77f-c64ffb411af2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"description\": \"updated lead\",\n    \"status\": \"qualified\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/leads/update/5f26770a0ae9ea346d94753c","description":"<p>PATCH request to update Lead description, status, companyName. </p>\n<p>Permitted to employee-2, manager, admin</p>\n","urlObject":{"path":["leads","update","5f26770a0ae9ea346d94753c"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c0640710-900d-46c5-a77f-c64ffb411af2"},{"name":"Soft Delete","id":"89ddb3a0-d805-48ae-8bab-a49da2ca8376","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"xyz@gmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/leads/delete","description":"<p>PATCH request to shallow delete an lead. </p>\n<p>Permitted to all except guest.</p>\n","urlObject":{"path":["leads","delete"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"89ddb3a0-d805-48ae-8bab-a49da2ca8376"},{"name":"Restore Delete","id":"cc7287b3-2e97-409a-b60d-6e3d62dc2083","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/leads/restoredelete/5f26770a0ae9ea346d94753c","description":"<p>GET Request to restore deleted leads</p>\n<p>Permitted to Manager and Admin</p>\n","urlObject":{"path":["leads","restoredelete","5f26770a0ae9ea346d94753c"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cc7287b3-2e97-409a-b60d-6e3d62dc2083"},{"name":"View Shallow Deleted","id":"640450bd-dc2a-4f46-a348-f62ca6aed4d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/leads/viewdelete","description":"<p>PUT Request to get list of deleted leads.</p>\n<p>Permitted to manager and admin</p>\n","urlObject":{"path":["leads","viewdelete"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"640450bd-dc2a-4f46-a348-f62ca6aed4d0"},{"name":"Delete Leads","id":"7e99e3bd-914a-4161-bd46-9896033d7cac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/leads/remove/5f2696e1df940d3853711098","description":"<p>DELETE Request to permanently delete the leads.</p>\n<p>Permitted to manager and admin</p>\n","urlObject":{"path":["leads","remove","5f2696e1df940d3853711098"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7e99e3bd-914a-4161-bd46-9896033d7cac"}],"id":"c7ac9b2c-2ce0-4ba5-aaf2-96f159ec9614","description":"<p>These routes are for creating , updating and deleting leads. </p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"_postman_id":"c7ac9b2c-2ce0-4ba5-aaf2-96f159ec9614"},{"name":"Service","item":[{"name":"Create Service Request","id":"824362af-089b-4447-834d-9ad5ab52a1d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"title\": \"Weld\",\n    \"categories\": \"Wleder\",\n    \"description\": \"Need help\",\n    \"assignmed_to\": \"5f1b26507922bb1bbdfcfc66\"\n    \n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/services/create","description":"<p>POST Request to create new service request</p>\n<p>Permitted to role of admin, manager and employee-2.</p>\n<p>Assisgned to ID of employeee</p>\n","urlObject":{"path":["services","create"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"824362af-089b-4447-834d-9ad5ab52a1d5"},{"name":"Select Service","id":"20adc3fa-4dd8-4f64-9446-6c34a2bb3744","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/services/select/5f26cafc4dad283fb3331b20","description":"<p>GET Request to list all the services</p>\n","urlObject":{"path":["services","select","5f26cafc4dad283fb3331b20"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"20adc3fa-4dd8-4f64-9446-6c34a2bb3744"},{"name":"Update Service ","id":"504dea54-6785-4bf4-a902-be8b28b9b863","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"description\": \"I am changed\",\n    \"status\": \"open\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/services/update","description":"<p>PATCH Request to update the description, status of service requested.</p>\n","urlObject":{"path":["services","update"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"504dea54-6785-4bf4-a902-be8b28b9b863"},{"name":"View All Servies","id":"e02b5485-379a-4ede-9b2d-d8dbabc7f3bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/services/all","description":"<p>GET Request to fetch all the service requests.</p>\n","urlObject":{"path":["services","all"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e02b5485-379a-4ede-9b2d-d8dbabc7f3bd"}],"id":"f3a4d493-15db-43a8-9c34-9e9c60ba6bcc","description":"<p>Routes for creation ,updation and deletion of service requests</p>\n","_postman_id":"f3a4d493-15db-43a8-9c34-9e9c60ba6bcc"},{"name":"Admin","item":[{"name":"View All Users","id":"cc56d249-138e-4600-a6de-d2f3f9c63bb6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{URL}}/admin/getall","description":"<p>GET REQUEST to fetch the list of all the users</p>\n","urlObject":{"path":["admin","getall"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cc56d249-138e-4600-a6de-d2f3f9c63bb6"},{"name":"Add User","id":"ad9d84cf-5b86-491a-9176-a618858ec337","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"5f27f714f2be31517cf06470\",\n    \"role\": \"employee\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/admin/adduser/5f27f714f2be31517cf06470","description":"<p>PATCH Request to add user.</p>\n","urlObject":{"path":["admin","adduser","5f27f714f2be31517cf06470"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ad9d84cf-5b86-491a-9176-a618858ec337"},{"name":"Select User","id":"5748653a-c884-44ef-81fb-5873b8e72428","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/admin/select/5f27f714f2be31517cf06470","description":"<p>GET Request to select an single user.</p>\n","urlObject":{"path":["admin","select","5f27f714f2be31517cf06470"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5748653a-c884-44ef-81fb-5873b8e72428"},{"name":"Delete User","id":"4b340daa-f411-4406-8551-d00894e6dbdb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"5f1b26507922bb1bbdfcfc66\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/admin/delete","description":"<p>DELETE Request to delete a selected user with admin rights</p>\n","urlObject":{"path":["admin","delete"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4b340daa-f411-4406-8551-d00894e6dbdb"},{"name":"Assign Role","id":"9211ae44-6853-485b-9791-6c3b95b5958e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"role\": \"manager\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/admin/changerole/5f27c9bad79a684b34a55b5f","description":"<p>PATCH Request to assign and/ update Roles of user.</p>\n","urlObject":{"path":["admin","changerole","5f27c9bad79a684b34a55b5f"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9211ae44-6853-485b-9791-6c3b95b5958e"}],"id":"42a7b3e3-d655-443c-acaf-9621f9c4aeed","description":"<p>These routes require admin rights. </p>\n<p>These use to assign roles, accept user, get all user and delete user.</p>\n","_postman_id":"42a7b3e3-d655-443c-acaf-9621f9c4aeed"}]}