<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>OK, I finally got a chance to play around with this, and...  
      you're correct, it's not implemented.  The API is indeed there
      under the hood, but it's not exposed in the REST interface.  This
      is probably an oversight and we should fix it.  But I started
      looking into what would be needed to fix it, and discovered that
      perhaps maybe it wasn't implemented because "version" already
      exists as an object type in the REST API, and it's the version of
      Bugzilla, not a product version.  Maybe we can make it be
      "versions" with an "s"? Or maybe we just overload it and you get
      the Bugzilla version if you don't specify anything after it and
      there's no payload, and if there's a payload then we treat it like
      a product version object? <br>
    </p>
    <p>Anyhow, I filed this at
      <a class="moz-txt-link-freetext" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1951899">https://bugzilla.mozilla.org/show_bug.cgi?id=1951899</a><br>
    </p>
    <div class="moz-cite-prefix">On 3/3/25 7:08 PM, Dave Miller wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:6EC3684B-686C-45E8-B6C0-45FECF609B71@bugzilla.org">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator"
        content="Microsoft Word 15 (filtered medium)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <style>@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}@font-face
        {font-family:PMingLiU;
        panose-1:2 1 6 1 0 1 1 1 1 1;}@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
        {font-family:Aptos;}@font-face
        {font-family:"\@PMingLiU";
        panose-1:2 1 6 1 0 1 1 1 1 1;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:12.0pt;
        font-family:"Aptos",sans-serif;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#467886;
        text-decoration:underline;}span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}div.WordSection1
        {page:WordSection1;}ol
        {margin-bottom:0in;}ul
        {margin-bottom:0in;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div dir="auto">I'm planning to experiment with this later tonight
        and see what I can figure out. Sorry for the delay, I was buried
        with end-of-the-month paperwork and haven't had a chance to play
        yet.</div>
      <br>
      <br>
      <div class="gmail_quote">
        <div dir="auto">On March 3, 2025 5:33:56 PM EST, David Wright
          <a class="moz-txt-link-rfc2396E" href="mailto:David_Wright@phoenix.com"><David_Wright@phoenix.com></a> wrote:</div>
        <blockquote class="gmail_quote"
style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
          <div class="WordSection1">
            <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Hello,
                <o:p></o:p></span></p>
            <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
            <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Any
                update for our follow up questions?
                <o:p></o:p></span></p>
            <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Thanks
                in advance for the support!
                <o:p></o:p></span></p>
            <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
            <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Thanks,
                <o:p></o:p></span></p>
            <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">David
                Wright<o:p></o:p></span></p>
            <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Phoenix
                Technologies<o:p></o:p></span></p>
            <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
            <div>
              <div
style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
                <p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
                    David Wright
                    <br>
                    <b>Sent:</b> Tuesday, February 25, 2025 10:47 AM<br>
                    <b>To:</b> 'Dave Miller'
                    <a class="moz-txt-link-rfc2396E" href="mailto:justdave@bugzilla.org"><justdave@bugzilla.org></a>;
                    <a class="moz-txt-link-abbreviated" href="mailto:support-list@bugzilla.org">support-list@bugzilla.org</a><br>
                    <b>Subject:</b> RE: Use Bugzilla REST API to Insert
                    Existing Product "Version"<o:p></o:p></span></p>
              </div>
            </div>
            <p class="MsoNormal"><o:p> </o:p></p>
            <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Thanks
                Dave, that is helpful. Glad to hear it should be
                possible.
                <o:p></o:p></span></p>
            <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
            <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Some
                follow up questions from our dev working on this issue:<o:p></o:p></span></p>
            <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
            <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">I
                need more information to proceed. The link referenced in
                your comment redirects to what appears to be a code
                snippet of a Perl script working on the backend, but I
                need info on how to work with the product out of band
                through REST API calls.<o:p></o:p></span></p>
            <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
            <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">I’ve
                listed some of the questions below that I wasn't able to
                find an answer to in the docs:<o:p></o:p></span></p>
            <ul style="margin-top:0in" type="disc">
              <li class="MsoNormal" style="mso-list:l1 level1 lfo3"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">What
                  is the REST URI to call to work with versioning
                  information for a particular product?<o:p></o:p></span></li>
              <li class="MsoNormal" style="mso-list:l1 level1 lfo3"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">What
                  is the payload to be passed when making the call for
                  the below items?<o:p></o:p></span></li>
              <ul style="margin-top:0in" type="circle">
                <li class="MsoNormal" style="mso-list:l1 level2 lfo3"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Adding
                    a new version to a product<o:p></o:p></span></li>
                <li class="MsoNormal" style="mso-list:l1 level2 lfo3"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Updating
                    an existing version in a product<o:p></o:p></span></li>
                <li class="MsoNormal" style="mso-list:l1 level2 lfo3"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Deleting
                    an existing version from the product<o:p></o:p></span></li>
              </ul>
            </ul>
            <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
            <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Thanks,
                <o:p></o:p></span></p>
            <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Dave<o:p></o:p></span></p>
            <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
            <div>
              <div
style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
                <p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
                    support-list <<a
                      href="mailto:support-list-bounces@bugzilla.org"
                      moz-do-not-send="true"
                      class="moz-txt-link-freetext">support-list-bounces@bugzilla.org</a>>
                    <b>On Behalf Of </b>Dave Miller<br>
                    <b>Sent:</b> Monday, February 24, 2025 4:55 PM<br>
                    <b>To:</b> <a
                      href="mailto:support-list@bugzilla.org"
                      moz-do-not-send="true"
                      class="moz-txt-link-freetext">support-list@bugzilla.org</a><br>
                    <b>Subject:</b> Re: Use Bugzilla REST API to Insert
                    Existing Product "Version"<o:p></o:p></span></p>
              </div>
            </div>
            <p class="MsoNormal"><o:p> </o:p></p>
            <p><span style="color:black;background:#F1C40F">[Caution,
                this message was sent from an external sender.]</span><o:p></o:p></p>
            <p class="MsoNormal"><o:p> </o:p></p>
            <div>
              <div>
                <p class="MsoNormal">A version is its own object type. <br>
                  <br>
                  <a
href="https://bugzilla.readthedocs.io/en/latest/integrating/api/Bugzilla/Version.html"
                    moz-do-not-send="true" class="moz-txt-link-freetext">https://bugzilla.readthedocs.io/en/latest/integrating/api/Bugzilla/Version.html</a><br>
                  <br>
                  You can create a new version there by passing the
                  version name and the ID of the product to attach it
                  to.<br>
                  <br>
                  The function docs look like they're missing, but it's
                  in the example at the top.<o:p></o:p></p>
              </div>
              <p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
              <div>
                <div>
                  <p class="MsoNormal">On February 24, 2025 7:11:03 PM
                    EST, David Wright <<a
                      href="mailto:David_Wright@phoenix.com"
                      moz-do-not-send="true"
                      class="moz-txt-link-freetext">David_Wright@phoenix.com</a>>
                    wrote:<o:p></o:p></p>
                </div>
                <blockquote
style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
                  <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Hello,
                      <o:p></o:p></span></p>
                  <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
                  <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">We
                      are trying to Automate insertion of a Product
                      “Version” instead of having to do it manually.
                      <o:p></o:p></span></p>
                  <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><br>
                      According to the Bugzilla API manual, this does
                      not seem to be an option for UPDATING, only
                      CREATING a new product.
                      <o:p></o:p></span></p>
                  <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><a
href="https://bugzilla.readthedocs.io/en/latest/integrating/api/Bugzilla/WebService/Product.html"
                        moz-do-not-send="true"
                        class="moz-txt-link-freetext">https://bugzilla.readthedocs.io/en/latest/integrating/api/Bugzilla/WebService/Product.html</a><o:p></o:p></span></p>
                  <table class="MsoNormalTable" border="0"
                    cellspacing="0" cellpadding="0" width="700"
                    style="width:525.0pt">
                    <tbody>
                      <tr>
                        <td valign="top"
                          style="padding:1.5pt 1.5pt 1.5pt 1.5pt">
                          <p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual"><o:p> </o:p></span></p>
                          <p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual">But
                              maybe we are looking at the wrong
                              documenation or misunderstanding.
                              <o:p></o:p></span></p>
                          <p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual"><o:p> </o:p></span></p>
                          <p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual">Is
                              there any way we can use the Bugzilla REST
                              API to insert a new version for an
                              <b>existing</b> product?<o:p></o:p></span></p>
                          <p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual"><o:p> </o:p></span></p>
                          <p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual">This
                              is the current manual process:<o:p></o:p></span></p>
                          <p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual"><o:p> </o:p></span></p>
                          <p class="MsoNormal"><img border="0"
                              width="921" height="66"
                              style="width:9.5937in;height:.6875in"
                              id="_x0000_i1026"
                              src="cid:image001.png@01DB86D6.B2CD1670"
                              moz-do-not-send="true"><span
style="font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual"><o:p></o:p></span></p>
                        </td>
                      </tr>
                      <tr>
                        <td valign="top"
                          style="padding:1.5pt 1.5pt 1.5pt 1.5pt">
                          <p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual"><o:p> </o:p></span></p>
                        </td>
                      </tr>
                      <tr style="height:7.5pt">
                        <td valign="top"
style="padding:1.5pt 1.5pt 1.5pt 1.5pt;height:7.5pt">
                          <p class="MsoNormal"><img border="0"
                              width="342" height="117"
                              style="width:3.5625in;height:1.2187in"
                              id="_x0000_i1025"
                              src="cid:image002.png@01DB86D6.B2CD1670"
                              moz-do-not-send="true"><span
style="font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual"><o:p></o:p></span></p>
                          <p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual"><o:p> </o:p></span></p>
                          <p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual">Thanks,
                              <o:p></o:p></span></p>
                          <p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual">David
                              Wright<o:p></o:p></span></p>
                          <p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual">Phoenix
                              Technologies<o:p></o:p></span></p>
                        </td>
                      </tr>
                      <tr>
                        <td valign="top"
                          style="padding:1.5pt 1.5pt 1.5pt 1.5pt">
                          <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual"><o:p> </o:p></span></p>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                  <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual"><o:p> </o:p></span></p>
                  <p class="MsoNormal"><o:p> </o:p></p>
                </blockquote>
              </div>
              <div>
                <div>
                </div>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <div dir="auto">
        <div class="k9mail-signature">-- <br>
          Sent from my Android phone with K-9 Mail. Please excuse my
          brevity.</div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre wrap="" class="moz-quote-pre">_______________________________________________
support-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:support-list@bugzilla.org">support-list@bugzilla.org</a>
<a class="moz-txt-link-freetext" href="https://lists.bugzilla.org/listinfo/support-list">https://lists.bugzilla.org/listinfo/support-list</a>
</pre>
    </blockquote>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <title></title>
    </div>
    <div class="moz-signature"
      signature-switch-id="b0b24bd1-735c-4a02-9f5d-e2b2e9b4f40d">
      <div>
        <table style="width: 300px; border-style: none;"
          cellpadding="3px" border="0px">
          <tbody>
            <tr>
              <td style="width: 106px;"><img alt="[Bugzilla Logo]"
                  src="cid:part1.yqnqO84h.XSY00d03@bugzilla.org"
                  width="100" height="100"></td>
              <td>
                <div><strong><span style="font-size: 13pt;">Dave Miller</span></strong></div>
                <div>Project Leader</div>
                <div><strong>Bugzilla Project</strong></div>
                <div><a href="https://bugzilla.org/"
rel="nofollow
                    noopener noreferrer" target="_blank"
                    class="moz-txt-link-freetext">https://bugzilla.org/</a></div>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
    </div>
  </body>
</html>