Use Bugzilla REST API to Insert Existing Product "Version"

David Wright David_Wright at phoenix.com
Mon Mar 3 22:33:56 UTC 2025


Hello,

Any update for our follow up questions?
Thanks in advance for the support!

Thanks,
David Wright
Phoenix Technologies

From: David Wright
Sent: Tuesday, February 25, 2025 10:47 AM
To: 'Dave Miller' <justdave at bugzilla.org>; support-list at bugzilla.org
Subject: RE: Use Bugzilla REST API to Insert Existing Product "Version"

Thanks Dave, that is helpful. Glad to hear it should be possible.

Some follow up questions from our dev working on this issue:

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.

I’ve listed some of the questions below that I wasn't able to find an answer to in the docs:

  *   What is the REST URI to call to work with versioning information for a particular product?
  *   What is the payload to be passed when making the call for the below items?
     *   Adding a new version to a product
     *   Updating an existing version in a product
     *   Deleting an existing version from the product

Thanks,
Dave

From: support-list <support-list-bounces at bugzilla.org<mailto:support-list-bounces at bugzilla.org>> On Behalf Of Dave Miller
Sent: Monday, February 24, 2025 4:55 PM
To: support-list at bugzilla.org<mailto:support-list at bugzilla.org>
Subject: Re: Use Bugzilla REST API to Insert Existing Product "Version"


[Caution, this message was sent from an external sender.]

A version is its own object type.

https://bugzilla.readthedocs.io/en/latest/integrating/api/Bugzilla/Version.html<https://bugzilla.readthedocs.io/en/latest/integrating/api/Bugzilla/Version.html>

You can create a new version there by passing the version name and the ID of the product to attach it to.

The function docs look like they're missing, but it's in the example at the top.

On February 24, 2025 7:11:03 PM EST, David Wright <David_Wright at phoenix.com<mailto:David_Wright at phoenix.com>> wrote:
Hello,

We are trying to Automate insertion of a Product “Version” instead of having to do it manually.

According to the Bugzilla API manual, this does not seem to be an option for UPDATING, only CREATING a new product.
https://bugzilla.readthedocs.io/en/latest/integrating/api/Bugzilla/WebService/Product.html<https://bugzilla.readthedocs.io/en/latest/integrating/api/Bugzilla/WebService/Product.html>

But maybe we are looking at the wrong documenation or misunderstanding.

Is there any way we can use the Bugzilla REST API to insert a new version for an existing product?

This is the current manual process:

[cid:image001.png at 01DB86D6.B2CD1670]

[cid:image002.png at 01DB86D6.B2CD1670]

Thanks,
David Wright
Phoenix Technologies



--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bugzilla.org/pipermail/support-list/attachments/20250303/f6cc8f1e/attachment-0001.html>


More information about the support-list mailing list