Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-49373

REST API to create credentials showing 404 error

XMLWordPrintable

       

       The following command is causing a 404 error:

       

      curl -v -u admin:admin -XPOST  http://localhost:8080/credentials/store/system/domain/_/createCredentials -F 'json={"": "4", "credentials":{"secret": "my secret val", "id": "mysecretid", "stapler-class": "org.jenkinsci.plugins.plaincredentials.impl.StringCredetialsImpl", "$class": "org.jenkinsci.plugins.plaincredentials.impl.StringCredentialsImpl"}}'

       

            stephenconnolly Stephen Connolly
            pontusvision Leo Martins
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: