0

json data body datas are..

"entry": {  
        "id": 0,    
            "media_type": "image",
            "label": "Image",
            "position": 1,
            "disabled": false,
            "types": [
                "image",
                "small_image",
                "thumbnail"      ],
            "content": {
                "base64_encoded_data": "'.$productimage.'",
                 "type": "image/png",
                "name": "tshirt.png"
            }
        }
1
  • Can you please add endpoint or explain more in detail what you tried. Commented Jan 22, 2020 at 8:25

1 Answer 1

0

Try change param for base_64_encoded_data. Reference: https://devdocs.magento.com/redoc/2.3/admin-rest-api.html#tag/productsskumedia

2
  • changed base64_encoded_data param still getting same error Commented Jan 22, 2020 at 7:56
  • Remove id param. What happens if you send same request via restApi? Commented Jan 22, 2020 at 8:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.