Title: Retrieving image data via API
Last modified: April 20, 2021

---

# Retrieving image data via API

 *  Resolved [fidelbarreat13](https://wordpress.org/support/users/fidelbarreat13/)
 * (@fidelbarreat13)
 * [5 years ago](https://wordpress.org/support/topic/retrieving-image-data-via-api/)
 * Hey, currently we’re creating products and its variants via WooCommerce API but
   when we create some colors (an attribute) for our products, it doesn’t have any
   image so it’s impossible to change between colors in the web.
 * We’ve already tried by retrieving the product attributes to see if there’s any
   attribute in the response that we can use but there’s none even when we upload
   the image to an attribute manually via web.
 * When we try with this url: v3/products/attributes/2/terms/365 (last parameter
   is an id)
    It retrieves:
 *     ```
       {
           "id": 365,
           "name": "2022289600",
           "slug": "2022289600",
           "description": "2022289600",
           "menu_order": 0,
           "count": 1,
           "_links": {
               "self": [
                   {
                       "href": "http://sm.nhubex.com:8088/index.php/wp-json/wc/v3/products/attributes/2/terms/365"
                   }
               ],
               "collection": [
                   {
                       "href": "http://sm.nhubex.com:8088/index.php/wp-json/wc/v3/products/attributes/2/terms"
                   }
               ]
           }
       }
       ```
   
 * When we create the product, this is the attributes we send:
 *     ```
       "attributes": [
             {
               "id": "2",
               "name": "Color",
               "position": "0",
               "visible": true,
               "variation": true,
               "options": [
                 "600",
                 "001"
               ]
             }
         ]
       ```
   
 * And creating the variation:
 *     ```
       "attributes": [
           {
             "id": "2",
             "option": "2022289600",
             "image": [
                   {
                       "id": 12039
                   }
               ]
           }
       ```
   
 * In this one we tried to send some new attribute called “image” in the json but
   it doesn’t work.
 * Where can I send the thumbnail image to update it? Is there any metadata attribute
   that I can use for sending that attribute image?
    -  This topic was modified 5 years ago by [fidelbarreat13](https://wordpress.org/support/users/fidelbarreat13/).

Viewing 1 replies (of 1 total)

 *  Plugin Support [Andrea Grillo](https://wordpress.org/support/users/agengineering/)
 * (@agengineering)
 * [5 years ago](https://wordpress.org/support/topic/retrieving-image-data-via-api/#post-14351632)
 * Hi there,
 * thanks for reporting about that. I’m sorry but this feature isn’t available in
   this moment but we’re going to add it in a future release. Probably we’ll add
   it at least at the end of next month.

Viewing 1 replies (of 1 total)

The topic ‘Retrieving image data via API’ is closed to new replies.

 * ![](https://ps.w.org/yith-color-and-label-variations-for-woocommerce/assets/icon.
   svg?rev=3055638)
 * [YITH Color and Label Variations for WooCommerce](https://wordpress.org/plugins/yith-color-and-label-variations-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-color-and-label-variations-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-color-and-label-variations-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-color-and-label-variations-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-color-and-label-variations-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-color-and-label-variations-for-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Andrea Grillo](https://wordpress.org/support/users/agengineering/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/retrieving-image-data-via-api/#post-14351632)
 * Status: resolved