---
title: "Discussion on \"Magento 2 - How to upload image to REST API (via POST request)\" | Hashnode"
description: "Discussion on \"Magento 2 - How to upload image to REST API (via POST request)\". If you want to upload a product image using Rest API you need to pass the below parameters in your request:\npost to https://{YOUDOMAIN}/rest/V1/products/{SKU}/media with body, JSON:\n{\n    \"entry\": {\n        \"media_type\": \"image\",\n        \"label\": nul..."
url: "https://hashnode.com/posts/magento-2-how-to-upload-image-to-rest-api-via-post-request/64d0db19614b56c0c2d1d032"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Magento 2 - How to upload image to REST API (via POST request)](https://blog.daneke.ge/magento-2-how-to-upload-image-to-rest-api-via-post-request?utm_source=hashnode&utm_medium=feed)

If you want to upload a product image using Rest API you need to pass the below parameters in your request: post to https://{YOUDOMAIN}/rest/V1/products/{SKU}/media with body, JSON: { "entry": { "media\_type": "image", "label": nul...

Aug 7, 2023 · 1 min read · blog.daneke.ge  
Updated Aug 9, 2023  
Read the article

-   [#magento-2](https://hashnode.com/tag/magento-2)

## Written by

[George Daneke](https://hashnode.com/@flatroy)

@flatroy · Ramat Gan, Israel

  
[View profile](https://hashnode.com/@flatroy)

Web Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
