It turns out the product was variable. I did not notice that the type attribute was set to variation. I had tried to retrieve the variations of this product and it did not return any so I thought it was not a variation. By using the parent_id attribute to get the product id the variation was created from I am able to construct the proper variation end point to update the stock quantity. Thank you for your help.