{"collection":{"info":{"_postman_id":"fc8f8dcc-d234-4470-a740-d3a9181843df","name":"Timeclock.Kiwi API","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json","createdAt":"2024-11-10T21:22:53.000Z","updatedAt":"2024-11-11T02:51:48.000Z","lastUpdatedBy":"23023929","uid":"23023929-fc8f8dcc-d234-4470-a740-d3a9181843df"},"item":[{"name":"jobs","item":[{"name":"jobs_get","id":"f4447141-ef19-42f4-ac73-45f4c4019c92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{base_url}}/jobs","host":["{{base_url}}"],"path":["jobs"],"query":[{"key":"id","value":"{{job_id}}","description":"(Optional) Providing an ID will return the specific job. Not providing this value will return all jobs.","disabled":true},{"key":"completed","value":"true","description":"(Optional) Default=false. Return only jobs completed field matches the value.","type":"text","disabled":true},{"key":"deleted","value":"true","description":"(Optional) Default=false. Return only jobs deleted field matches the value.","type":"text","disabled":true}]}},"response":[],"createdAt":"2024-11-10T21:34:42.000Z","updatedAt":"2024-11-13T01:26:58.000Z","uid":"23023929-f4447141-ef19-42f4-ac73-45f4c4019c92"},{"name":"jobs_delete","id":"066ba9e9-550e-4e89-b438-b38d5bf0fc39","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"[\"01d2aa95-1866-4718-8d86-08aa5182f20d\", \"13074d81-2483-46ea-8bce-b8d761c2580e\"]","options":{"raw":{"language":"json"}}},"url":{"raw":"{{base_url}}/jobs","host":["{{base_url}}"],"path":["jobs"]}},"response":[],"createdAt":"2024-11-10T21:35:14.000Z","updatedAt":"2024-11-11T19:25:02.000Z","uid":"23023929-066ba9e9-550e-4e89-b438-b38d5bf0fc39"},{"name":"jobs_add","id":"2c4a3dd9-6476-493b-ae0d-ab8db5bd6700","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"99 Bamford St\",\r\n    \"description\": \"Renovating kitchen in 6 apartments\",\r\n    \"permanent\": false,\r\n    \"due_date\": \"2024-11-30 09:00\", // (required only if permanent == false)\r\n    \"cost_code\": \"123456\", // (optional)\r\n    \"completed\": false, // (optional)\r\n    \"deleted\": false // (optional)\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{base_url}}/jobs","host":["{{base_url}}"],"path":["jobs"]},"description":"This endpoint allows you to create a new job by sending an HTTP POST request to the specified URL. The request should include the query parameters Completed, Deleted, CostCodes, Groups, Kiosks, People, Notes, and Materials. The Completed and Deleted parameters are boolean flags, while the rest are objects representing different aspects of the job.\n\nThe request body should contain the necessary details for creating the job, such as job title, description, assigned personnel, materials required, etc. Upon successful creation, the response will include the details of the newly created job, along with a status message.\n\nExample request body:\n\n``` json\n{\n  \"title\": \"New Job Title\",\n  \"description\": \"Description of the new job\",\n  \"assignedPersonnel\": [\"person1\", \"person2\"],\n  \"materialsRequired\": [\"material1\", \"material2\"]\n}\n\n ```\n\nExample response:\n\n``` json\n{\n  \"jobId\": \"12345\",\n  \"title\": \"New Job Title\",\n  \"description\": \"Description of the new job\",\n  \"status\": \"created\"\n}\n\n ```"},"response":[],"createdAt":"2024-11-10T21:28:29.000Z","updatedAt":"2024-11-13T19:21:56.000Z","uid":"23023929-2c4a3dd9-6476-493b-ae0d-ab8db5bd6700"},{"name":"jobs_update","id":"21820fbd-7a47-4e02-81ab-91f0645de449","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"dfb37a1e-692e-44d5-bedf-309b44b9e136\",\r\n    \"name\": \"99 Bamford St\",\r\n    \"description\": \"Renovating kitchen in 6 apartments\",\r\n    \"permanent\": false,\r\n    \"due_date\": \"2024-11-30 09:00\", // (required only if permanent == false)\r\n    \"cost_code\": \"1111\", // (optional)\r\n    \"completed\": false, // (optional)\r\n    \"deleted\": false, // (optional)\r\n    \"groups\": [\"d2358de1-3631-428a-a314-f1bdb8ab53a2\"],\r\n    \"kiosks\": [\"353e1f09-9851-42c8-9b2c-e536ce2cd3bb\"],\r\n    \"people\": [\"017a1008-de92-4df2-a533-4e17b643123e\"],\r\n    \"materials\": [{ \"id\": \"03b133a9-4546-4e73-89c8-119fb5042fdb\", \"person_id\": \"017a1008-de92-4df2-a533-4e17b643123e\", \"quantity\": 5}],\r\n    \"notes\": [{ \"person_id\": \"017a1008-de92-4df2-a533-4e17b643123e\", \"note\": \"Test note\"}]\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{base_url}}/jobs","host":["{{base_url}}"],"path":["jobs"]},"description":"This endpoint allows you to create a new job by sending an HTTP POST request to the specified URL. The request should include the query parameters Completed, Deleted, CostCodes, Groups, Kiosks, People, Notes, and Materials. The Completed and Deleted parameters are boolean flags, while the rest are objects representing different aspects of the job.\n\nThe request body should contain the necessary details for creating the job, such as job title, description, assigned personnel, materials required, etc. Upon successful creation, the response will include the details of the newly created job, along with a status message.\n\nExample request body:\n\n``` json\n{\n  \"title\": \"New Job Title\",\n  \"description\": \"Description of the new job\",\n  \"assignedPersonnel\": [\"person1\", \"person2\"],\n  \"materialsRequired\": [\"material1\", \"material2\"]\n}\n\n ```\n\nExample response:\n\n``` json\n{\n  \"jobId\": \"12345\",\n  \"title\": \"New Job Title\",\n  \"description\": \"Description of the new job\",\n  \"status\": \"created\"\n}\n\n ```"},"response":[],"createdAt":"2024-11-11T20:03:53.000Z","updatedAt":"2024-11-13T19:21:47.000Z","uid":"23023929-21820fbd-7a47-4e02-81ab-91f0645de449"}],"id":"ba6ff576-320d-4361-9403-ec69757da969","createdAt":"2024-11-10T21:35:49.000Z","updatedAt":"2024-11-11T20:03:54.000Z","uid":"23023929-ba6ff576-320d-4361-9403-ec69757da969"},{"name":"groups","item":[{"name":"groups_get","id":"2a7cd126-f2d2-4896-b276-108dfb48a84e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{base_url}}/groups","host":["{{base_url}}"],"path":["groups"]}},"response":[],"createdAt":"2024-11-10T21:23:31.000Z","updatedAt":"2024-11-10T21:36:09.000Z","uid":"23023929-2a7cd126-f2d2-4896-b276-108dfb48a84e"}],"id":"f6ddadef-728d-4f68-922a-5071af868b25","createdAt":"2024-11-10T21:36:03.000Z","updatedAt":"2024-11-10T21:37:41.000Z","uid":"23023929-f6ddadef-728d-4f68-922a-5071af868b25"},{"name":"kiosks","item":[{"name":"kiosks_get","id":"af164449-c104-4ec4-bccb-8943434251b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{base_url}}/kiosks","host":["{{base_url}}"],"path":["kiosks"]}},"response":[],"createdAt":"2024-11-10T21:36:54.000Z","updatedAt":"2024-11-10T21:39:59.000Z","uid":"23023929-af164449-c104-4ec4-bccb-8943434251b2"}],"id":"1d0ede8a-cfe2-468d-970a-2836dc20f8c6","createdAt":"2024-11-10T21:37:35.000Z","updatedAt":"2024-11-10T21:38:09.000Z","uid":"23023929-1d0ede8a-cfe2-468d-970a-2836dc20f8c6"},{"name":"materials","item":[{"name":"materials_get","id":"69fb1042-be55-4d1b-a087-42207234620f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{base_url}}/materials","host":["{{base_url}}"],"path":["materials"]}},"response":[],"createdAt":"2024-11-10T21:38:07.000Z","updatedAt":"2024-11-10T21:39:58.000Z","uid":"23023929-69fb1042-be55-4d1b-a087-42207234620f"},{"name":"materials_add","id":"3fab82b6-43dd-4b58-80cc-e345d1e11410","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"// Not yet added","options":{"raw":{"language":"json"}}},"url":{"raw":"{{base_url}}/materials","host":["{{base_url}}"],"path":["materials"]},"description":"This endpoint allows you to create a new job by sending an HTTP POST request to the specified URL. The request should include the query parameters Completed, Deleted, CostCodes, Groups, Kiosks, People, Notes, and Materials. The Completed and Deleted parameters are boolean flags, while the rest are objects representing different aspects of the job.\n\nThe request body should contain the necessary details for creating the job, such as job title, description, assigned personnel, materials required, etc. Upon successful creation, the response will include the details of the newly created job, along with a status message.\n\nExample request body:\n\n``` json\n{\n  \"title\": \"New Job Title\",\n  \"description\": \"Description of the new job\",\n  \"assignedPersonnel\": [\"person1\", \"person2\"],\n  \"materialsRequired\": [\"material1\", \"material2\"]\n}\n\n ```\n\nExample response:\n\n``` json\n{\n  \"jobId\": \"12345\",\n  \"title\": \"New Job Title\",\n  \"description\": \"Description of the new job\",\n  \"status\": \"created\"\n}\n\n ```"},"response":[],"createdAt":"2024-11-11T19:39:22.000Z","updatedAt":"2024-11-11T19:39:52.000Z","uid":"23023929-3fab82b6-43dd-4b58-80cc-e345d1e11410"}],"id":"e23d13a0-02d0-422b-b953-523634e77df3","createdAt":"2024-11-10T21:37:56.000Z","updatedAt":"2024-11-11T19:39:22.000Z","uid":"23023929-e23d13a0-02d0-422b-b953-523634e77df3"},{"name":"people","item":[{"name":"people_get","id":"368aeade-1443-400e-bbbf-20eea10bed17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{base_url}}/people","host":["{{base_url}}"],"path":["people"]}},"response":[],"createdAt":"2024-11-10T21:39:03.000Z","updatedAt":"2024-11-10T21:39:56.000Z","uid":"23023929-368aeade-1443-400e-bbbf-20eea10bed17"}],"id":"bd6bc422-4f8c-4927-87b4-7a85aa9d01e3","createdAt":"2024-11-10T21:38:55.000Z","updatedAt":"2024-11-10T21:39:03.000Z","uid":"23023929-bd6bc422-4f8c-4927-87b4-7a85aa9d01e3"}],"auth":{"type":"apikey","apikey":[{"key":"value","value":"7626ca3b-f762-4a4c-974f-5f8b47f8073b","type":"string"},{"key":"key","value":"apiKey","type":"string"}]},"event":[{"listen":"prerequest","script":{"id":"e128240e-dfed-4d52-ad95-b4b418ec8aeb","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"affc1b65-ec3d-491b-8e39-1b2d7dbffa98","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"base_url","value":"http://localhost:5173/api"}]}}