Shopify Functions Product Discount API Bug. Discounts are not applied

Hello. I’m facing a problem that looks like yours… I was wondering, do you add this attribute to the product with an input hidden named ‘attributes[attributeName]’?