• Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • 2.396

      Hello,

      It's not possible to create a view from the API, since the views are part of the Hudson config.xml itself, it seems that the createItem URL doesn't match the need as it looks designed to create the new config.xml for a dedicated job.

      The REST API could be some thing like:

      GET http://myserver:8080/view (All views)
      GET http://myserver:8080/view/myView (switch to Specific view - myView)
      POST http://myserver:8080/view (Create new view as defined in the posted XML)

      Can you please have a look?

      Thanks and regards,

      Julien

          [JENKINS-8927] Create a view from the XML API

          Julien Faucher created issue -
          William Zhang made changes -
          Labels New: view
          RĂ¼diger zu Dohna made changes -
          Link New: This issue is related to JENKINS-9264 [ JENKINS-9264 ]
          Daniel Beck made changes -
          Link New: This issue is related to JENKINS-23172 [ JENKINS-23172 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 139071 ] New: JNJira + In-Review [ 175010 ]
          Alexander Brandes made changes -
          Remote Link New: This issue links to "https://github.com/jenkinsci/jenkins/pull/7692 (Web Link)" [ 28516 ]
          Alexander Brandes made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Alexander Brandes made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Alexander Brandes made changes -
          Released As New: 2.396
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Closed [ 6 ]
          Alexander Brandes made changes -
          Assignee New: Denys Digtiar [ duemir ]
          Alexander Brandes made changes -
          Remote Link New: This issue links to "https://github.com/jenkinsci/jenkins/pull/7692 (Web Link)" [ 28546 ]

            duemir Denys Digtiar
            foch Julien Faucher
            Votes:
            9 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: