diff --git a/core/src/main/resources/jenkins/model/Jenkins/_api.jelly b/core/src/main/resources/jenkins/model/Jenkins/_api.jelly index 17eadf77c21bb4b7a4179c1f62766bafc5187c28..f6f7aed6d2415077e03dba00c3e3d4a96e407c2c 100644 --- a/core/src/main/resources/jenkins/model/Jenkins/_api.jelly +++ b/core/src/main/resources/jenkins/model/Jenkins/_api.jelly @@ -27,9 +27,11 @@ THE SOFTWARE.

Create Job

To create a new job, post config.xml to this URL with - query parameter name=JOBNAME. You'll get 200 status code if the creation is successful, + query parameter name=JOBNAME. You need to send a Content-Type: application/xml + header. You'll get 200 status code if the creation is successful, or 4xx/5xx code if it fails. config.xml is the format Jenkins uses to store the project - in the file system, so you can see examples of them in ${app.rootDir}. + in the file system, so you can see examples of them in the Jenkins home directory, or by retrieving + the XML configuration of existing jobs from /job/JOBNAME/config.xml.

Copy Job