cancel
Showing results for 
Search instead for 
Did you mean: 

API: Hide from Product Page not working

API: Hide from Product Page not working

Hello,

 

I upload bia API Endpoint the images:

thumb: 64x64
small: 128x128
base: min. 350px

 

I set for thumb and small "disabled": true

But the image ist not disabled in store

 

When I made it in admin panel .. M2 show the 2 images as "HIDDEN", but when I read the media, the disable state is not correct:

https://company.com/rest/V1/products/VTA2002-C2/media:

[
    {
        "id": 286,
        "media_type": "image",
        "label": "VTA2002-C2",
        "position": 1,
        "disabled": false,
        "types": [
            "image"
        ],
        "file": "/V/T/VTA2002-C2.png"
    },
    {
        "id": 287,
        "media_type": "image",
        "label": "VTA2002-C2_thumb",
        "position": 1,
        "disabled": true,
        "types": [
            "thumbnail"
        ],
        "file": "/V/T/VTA2002-C2_thumb.png"
    },
    {
        "id": 288,
        "media_type": "image",
        "label": "VTA2002-C2_small",
        "position": 3,
        "disabled": true,
        "types": [
            "small_image"
        ],
        "file": "/V/T/VTA2002-C2_small.png"
    }
]

Only the small image is in admin hidden .. and only because I set it manual in admin.

 

Is this a bug?