title: How to create jenkins credentials via the REST API?
body: <p>I need to create a jenkins credential ( <a href="https://wiki.jenkins-ci.org/display/JENKINS/Credentials+Plugin">https://wiki.jenkins-ci.org/display/JENKINS/Credentials+Plugin</a> ) via a script. How can I do that using either the REST API or the cli ? </p>
  
  <p>Note that I'm able to list the credentials using /credential-store/domain/<em>/api/json and /credential-store/domain/</em>/credential/8bd82461-e239-4db1-90bc-831ca3412e70/api/json etc. </p>