{"info":{"_postman_id":"c8fce5f1-54be-4d4f-9e2f-00d9dfab4d33","name":"Bree API","description":"<html><head></head><body><h4 id=\"an-api-for-use-with-breejs\">An API for use with BreeJS</h4>\n<h1 id=\"overview\">Overview</h1>\n<p>This is run as a plugin to BreeJS please see <a href=\"https://www.github.com/breejs/api#readme\">README</a> for more information.</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>A JWT Authorization is required.</p>\n<h1 id=\"error-codes\">Error Codes</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>The request was processed successfully.</td>\n</tr>\n<tr>\n<td>422</td>\n<td>The data sent was incorrect. This will return a specific message describing what went wrong.</td>\n</tr>\n<tr>\n<td>5xx</td>\n<td>The request failed due to a server error, it's safe to retry later.</td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Overview","slug":"overview"},{"content":"Authentication","slug":"authentication"},{"content":"Error Codes","slug":"error-codes"}],"owner":"17142435","collectionId":"c8fce5f1-54be-4d4f-9e2f-00d9dfab4d33","publishedId":"TzzDLbNG","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-08-23T14:44:41.000Z"},"item":[{"name":"/v1/config","id":"58cfcb3e-e008-411e-b5e3-3da9c3f4a021","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"/v1/config","description":"<p>Get configs for Bree. See Bree <a href=\"https://jobscheduler.net/#/?id=instance-options\">docs</a> for more information.</p>\n","urlObject":{"path":["v1","config"],"query":[],"variable":[]}},"response":[],"_postman_id":"58cfcb3e-e008-411e-b5e3-3da9c3f4a021"},{"name":"/v1/jobs","id":"4aa9e143-7309-4b31-a8fe-5f562a6faf7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"/v1/jobs","description":"<p>Get jobs including status.</p>\n","urlObject":{"path":["v1","jobs"],"query":[{"disabled":true,"description":{"content":"<p>Name of a job</p>\n","type":"text/plain"},"key":"name","value":null},{"disabled":true,"description":{"content":"<p>Status of current job</p>\n","type":"text/plain"},"key":"status","value":null}],"variable":[]}},"response":[],"_postman_id":"4aa9e143-7309-4b31-a8fe-5f562a6faf7f"},{"name":"/v1/jobs","id":"0a5ba7cf-0b65-4caa-b9cd-721409b660e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    jobs: [{\n        name: string,\n        // any other appropriate job options\n        // see BreeJS documents\n    }],                 // could be an object\n    copy?: boolean,     // OPTIONAL when true will duplicate jobs\n    start?: boolean,    // OPTIONAL when true will immediately start jobs\n}","options":{"raw":{"language":"javascript"}}},"url":"/v1/jobs","description":"<p>Add new jobs or duplicate existing jobs</p>\n","urlObject":{"path":["v1","jobs"],"query":[],"variable":[]}},"response":[],"_postman_id":"0a5ba7cf-0b65-4caa-b9cd-721409b660e6"},{"name":"/v1/start","id":"4c8ad0d9-ec9d-4259-8723-4dfb42dee022","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"/v1/start","description":"<p>Start all jobs. This will setup schedules.</p>\n","urlObject":{"path":["v1","start"],"query":[],"variable":[]}},"response":[],"_postman_id":"4c8ad0d9-ec9d-4259-8723-4dfb42dee022"},{"name":"/v1/start/:jobName","id":"547a123a-228d-4b0d-bf1d-49d077149cac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"/v1/start/:jobName","description":"<p>Start a specific job. This will setup schedules.</p>\n","urlObject":{"path":["v1","start",":jobName"],"query":[],"variable":[{"id":"70b985b0-b682-42b1-a8cb-daa1e4e6648d","type":"any","key":"jobName"}]}},"response":[],"_postman_id":"547a123a-228d-4b0d-bf1d-49d077149cac"},{"name":"/v1/run/:jobName","id":"38c77be7-f1a4-4d2c-b499-df151cd5c434","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"/v1/run/:jobName","description":"<p>Run a specific job. This will run immediately and not setup schedules.</p>\n","urlObject":{"path":["v1","run",":jobName"],"query":[],"variable":[{"id":"1b60e768-63d9-4e9c-83ca-dab60d28e760","type":"any","key":"jobName"}]}},"response":[],"_postman_id":"38c77be7-f1a4-4d2c-b499-df151cd5c434"},{"name":"/v1/stop","id":"da036d23-c9a6-4c7e-8319-d78ffd7c6761","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"/v1/stop","description":"<p>Stop all jobs.</p>\n","urlObject":{"path":["v1","stop"],"query":[],"variable":[]}},"response":[],"_postman_id":"da036d23-c9a6-4c7e-8319-d78ffd7c6761"},{"name":"/v1/stop/:jobName","id":"75314b18-9c7c-441c-a2fa-293834e9f07c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"/v1/stop/:jobName","description":"<p>Stop a specific job.</p>\n","urlObject":{"path":["v1","stop",":jobName"],"query":[],"variable":[{"id":"8f9614b4-530c-4812-9af4-33d0c5229e19","type":"any","key":"jobName"}]}},"response":[],"_postman_id":"75314b18-9c7c-441c-a2fa-293834e9f07c"},{"name":"/v1/restart","id":"ce00d635-b542-4eb7-bf89-27e095b6168a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"/v1/restart","description":"<p>Restart all jobs.</p>\n","urlObject":{"path":["v1","restart"],"query":[],"variable":[]}},"response":[],"_postman_id":"ce00d635-b542-4eb7-bf89-27e095b6168a"},{"name":"/v1/restart/:jobName","id":"46535c56-5217-478d-b69c-583e38bd538d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"/v1/restart/:jobName","description":"<p>Retart a specific job. This will setup schedules.</p>\n","urlObject":{"path":["v1","restart",":jobName"],"query":[],"variable":[{"id":"70b985b0-b682-42b1-a8cb-daa1e4e6648d","type":"any","key":"jobName"}]}},"response":[],"_postman_id":"46535c56-5217-478d-b69c-583e38bd538d"},{"name":"/v1/sse/:token","id":"76ef6a2c-9338-4867-8ae6-222a4c03efaf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v1/sse/:token","description":"<p><a href=\"https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events\">Server-sent events</a> endpoint for <code>worker created</code> and <code>worker deleted</code> events.</p>\n","urlObject":{"path":["v1","sse",":token"],"query":[],"variable":[{"description":{"content":"<p>JWT Token</p>\n","type":"text/plain"},"type":"any","value":null,"key":"token"}]}},"response":[],"_postman_id":"76ef6a2c-9338-4867-8ae6-222a4c03efaf"}],"event":[{"listen":"prerequest","script":{"id":"02489cbf-1dc9-4b57-9309-f4f5650f1de6","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ff1f2906-cd1b-498e-bbf3-dc181ab97d97","type":"text/javascript","exec":[""]}}]}