{ "opencollection": "1.0.0", "info": { "name": "CloudBees CI REST API (Jenkins-compatible) Computer Job API", "version": "1.0.0" }, "request": { "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "items": [ { "info": { "name": "Job", "type": "folder" }, "items": [ { "info": { "name": "Get job metadata", "type": "http" }, "http": { "method": "GET", "url": "https://example.cloudbees.com/job/:name/api/json", "params": [ { "name": "name", "value": "", "type": "path" }, { "name": "tree", "value": "", "type": "query", "description": "Tree filter for selecting and trimming response fields.\nExample: `jobs[name,url,color]`.\n" }, { "name": "depth", "value": "", "type": "query" } ] }, "docs": "Get job metadata" }, { "info": { "name": "Trigger a build (no parameters)", "type": "http" }, "http": { "method": "POST", "url": "https://example.cloudbees.com/job/:name/build", "params": [ { "name": "name", "value": "", "type": "path" }, { "name": "token", "value": "", "type": "query" } ] }, "docs": "Trigger a build (no parameters)" }, { "info": { "name": "Trigger a parameterized build", "type": "http" }, "http": { "method": "POST", "url": "https://example.cloudbees.com/job/:name/buildWithParameters", "params": [ { "name": "name", "value": "", "type": "path" }, { "name": "token", "value": "", "type": "query" } ], "body": { "type": "form-urlencoded", "data": [] } }, "docs": "Trigger a parameterized build" }, { "info": { "name": "Get a specific build", "type": "http" }, "http": { "method": "GET", "url": "https://example.cloudbees.com/job/:name/:number/api/json", "params": [ { "name": "name", "value": "", "type": "path" }, { "name": "number", "value": "", "type": "path" }, { "name": "tree", "value": "", "type": "query", "description": "Tree filter for selecting and trimming response fields.\nExample: `jobs[name,url,color]`.\n" } ] }, "docs": "Get a specific build" }, { "info": { "name": "Get last successful build of a job", "type": "http" }, "http": { "method": "GET", "url": "https://example.cloudbees.com/job/:name/lastSuccessfulBuild/api/json", "params": [ { "name": "name", "value": "", "type": "path" }, { "name": "tree", "value": "", "type": "query", "description": "Tree filter for selecting and trimming response fields.\nExample: `jobs[name,url,color]`.\n" } ] }, "docs": "Get last successful build of a job" }, { "info": { "name": "Get job configuration XML", "type": "http" }, "http": { "method": "GET", "url": "https://example.cloudbees.com/job/:name/config.xml", "params": [ { "name": "name", "value": "", "type": "path" } ] }, "docs": "Get job configuration XML" }, { "info": { "name": "Update job configuration XML", "type": "http" }, "http": { "method": "POST", "url": "https://example.cloudbees.com/job/:name/config.xml", "params": [ { "name": "name", "value": "", "type": "path" } ] }, "docs": "Update job configuration XML" }, { "info": { "name": "Delete job", "type": "http" }, "http": { "method": "POST", "url": "https://example.cloudbees.com/job/:name/doDelete", "params": [ { "name": "name", "value": "", "type": "path" } ] }, "docs": "Delete job" } ] } ], "bundled": true }