Hi all, I was trying to use Jenkins REST apis, and have a requirement to create items / jobs via REST api, but I prefer JSON over XML.
When I browse http://localhost:8080/api/ I can find following description Create Job To create a new job, post config.xml to this URL <http://localhost:8080/createItem> with query parameter name=*JOBNAME*. You need to send a Content-Type: application/xml header. You will get a 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 the Jenkins home directory, or by retrieving the XML configuration of existing jobs from /job/*JOBNAME* /config.xml. According to that, the input parameters for /createItem need to be passed in an "xml" file. Is there anyway I can avoid an xml file but to use a "JSON" for that? Does Jenkins createItem / createJob API supports JSON inputs? Thanks, Sajith -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.