• Resolved vipinphilipj

    (@vipinphilipj)


    I am adding products to my site via API.. I add all the information via API. As the variation gallery is an additional feature i wanted to know, is there a documentation i can refer to so i can add the variation gallery images via api automatically.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support M Rashid

    (@mamunur105)

    Hello,

    Thank you for using our plugin.

    We haven’t officially tested this using the REST API, but I can share how the media items are stored internally.

    Each variation has a meta key named rtwpvg_images which holds an array of image attachment IDs used for the variation gallery.

    While not officially documented for API use, you can try sending the following structure when creating or updating a variation via the API:

    "meta_data": [
    {
    "key": "rtwpvg_images",
    "value": [1234, 5678] // Attachment IDs of the gallery images
    }
    ]

    Please note this is just a guideline and may require adjustments depending on your setup.

Viewing 1 replies (of 1 total)

The topic ‘API feature’ is closed to new replies.