Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
90 views

unable to update custom attributes to product using rest API

I have created the custom attribute through rest API and it is also reflected in magento admin, after which when I tried to update the product with the attribute code.it won't worked. Below is my ...
manikandan.p's user avatar
0 votes
1 answer
35 views

Update custom attributes to product using rest

$data = [ "product" => [ "sku"=> $productsku, // "attribute_set_id"=> 4, //"attribute_set_id" => $mage_attr_set_id, ...
manikandan.p's user avatar
2 votes
1 answer
28 views

Issue with ERP API PUT Request: Unintended Update of `warranty_type`

On Magento 2.4.6: When our ERP executes an API request on the PUT method /all/V1/product/:sku with the following JSON content: { "product": { "custom_attributes": [ { ...
Kallard's user avatar
  • 21
0 votes
1 answer
902 views

How to update product attribute via Magento 2 API

I'm writing a Magento 2 client library in nodeJS and I've created some product attributes via this POST API /rest/V1/products/attributes which worked fine but I want to add update method as well, for ...
Asad ullah's user avatar
0 votes
1 answer
219 views

How to modify custom attribute of a product with JSON (Postman) Magento 2

thank you for reading me. Is there a way to modify a product´s custom attribute? I´m using postman, i use JSON POST for price and stock but i can´t find the way to update a custom attribute of a ...
Javier's user avatar
  • 1
1 vote
1 answer
1k views

REST API and custom attributes

My magento installation has 3 stores (domain+language). I would like to update custom attributes for products. When I call GET products/my_test_sku?storeId=1 i get something like the following json: {...
Mikkel Mortensen's user avatar
1 vote
1 answer
2k views

Product attribute create/update using rest api and assign it to attribute set

I am creating product attributes using rest API with the below request body. End point rest/V1/products/attributes/ { "attribute": { "is_wysiwyg_enabled": false, &...
Zahirabbas's user avatar
  • 2,083
0 votes
0 answers
152 views

Magento2 - How to update the value of an option of a product attribute programmatically?

I'm using the REST api and believe that we can't update the value of an option of a product attribute: we only have the POST method and no PUT. So, what would be the best way to do it in code? In fact,...
Jorge Silva's user avatar
4 votes
1 answer
605 views

How to set a new color to Color Attribute using Rest API

Hey i'm begginer at Magento 2 and i want to set a new color type to the Color Attribute using REST API. Is it possible? I know this can be done using the admin menu, but i would like to do this using ...
Rafael Fagundes's user avatar
2 votes
0 answers
1k views

Magento 2 Create Product Swatch Attribute via API

Is it possible to create a swatch attribute via the API endpoint? Swatch product attributes are seemingly created programatically by setting swatch_input_type data to the attribute, as demonstrated ...
Liam Toohey's user avatar
0 votes
1 answer
983 views

Magento 2.3.4 Add custom product attribute value (text-swatch) via REST API

Using Postman, with the following GET request I receive data from my custom product attribute: rest/V1/products/attributes?&searchCriteria[filterGroups][0][filters][0][field]=attribute_id&...
Th. Schott's user avatar
4 votes
0 answers
132 views

POST product with REST API doesn't save manufacturer attribute

I'm able to save a product with a POST request to my REST API endpoint. Now I would like to save manufacture attribute,too. I prepare this json structure { "product": { "sku": "code", ...
Claudio Pomo's user avatar
2 votes
0 answers
369 views

custom_attributes not returning from Magento 2 REST API

Using the Magento 2 REST API, I was able to successfully create a new product attribute sending a PUT request to V1/products/attributes/{attribute_code}. In the request, I added a value in the ...
natebayte's user avatar
5 votes
0 answers
752 views

Web API: Product set use default status for store view

Our products are created and updated via the web API. When we update a product for all /rest/all/V1/products/123 and set status: 2 the product is disabled. But per store view it's still enabled ...
Daniel's user avatar
  • 2,239
1 vote
0 answers
90 views

GET method arabic parameters doesn't work magento 2

I'm building rest api to get products filtered by specific attribute, when I pass parameter for GET method in arabic I get request doesn't match any route and when I send it using POST method it ...
Yomna Mansour's user avatar
0 votes
1 answer
682 views

Create/Update Attribute Option Custom api issue

I have created custom rest api to create/update attribute options by attribute_id. Here is my webapi.xml file code. <route url="/V1/attribute/AttributeOption" method="POST"> <service ...
Jafar Pinjar's user avatar
  • 1,961
2 votes
1 answer
7k views

Create product attribute with options in magento2 through rest API

I have created a custom module to create product attribute with option thruogh rest Api. Here is my code samples. etc/webapi.xml <route url="/V1/attribute/attributeCreate" method="POST"> &...
Jafar Pinjar's user avatar
  • 1,961
0 votes
1 answer
4k views

Retrieve all the products attribute using rest api

I am new to magento2 and learning using rest API of magento2. I want all products to attribute that is present in the database. I searched in the database and I found that the table eav_attribute ...
Phoenix404's user avatar
4 votes
1 answer
5k views

Disable/Enable product through the Magento 2 Api with Rest

I'm new to Magento Rest Api and I was wondering where can I could mark a single product disabled/enabled with a rest call. I've tried to change the visibility property via /V1/products/ but that does ...
gmarteinsson's user avatar
2 votes
0 answers
430 views

Magento 2.1: How to get attribute value as text in response of product rest api

I have created a custom attribute "color" and it has the values Red, Green, Blue. When I call /V1/products/:sku it shows the product details and also shows the custom_attributes{"attribute_code":"...
Lovely Setia's user avatar
0 votes
1 answer
1k views

Magento 2 REST API get categories names by list of ids

If you use Magento's REST APIs to get product, you use this endpoint: GET /V1/products/{sku} This endpoint returns response with category_ids in it. What I want to do is to get the product with ...
Mohammad Karam's user avatar
2 votes
2 answers
4k views

How to list groups of an attribute set using REST API in Magento 2

I am trying to use the Magento 2 rest API to list the groups of an attribute set: GET /V1/products/attribute-sets/groups/list But the request fails with the following error: { "message": "%...
romaia's user avatar
  • 123
0 votes
1 answer
741 views

Update is_qty_decimal or inventory_is_qty_decimal via API

Against a product in admin, if you go to Advanced Inventory, there's a Yes/No dropdown for Qty Uses Decimals. I would like to know how to update this field via the API, since I need this enabled, and ...
Jonathan Clark's user avatar
3 votes
3 answers
14k views

Magento 2 rest api get product's attributes options

I would like to get more then one product's attributes options in one query I have my url for one attribute option as follow: http://magento2.dev/rest/V1/products/attributes/size/options The above ...
Juliano Vargas's user avatar
2 votes
1 answer
1k views

How to clear a custom option via REST product update

I am using product repository save() (rest POST /V1/products) to create/update products. With a single select attribute I can add an option, but can't see any way to clear the attribute option if ...
BAF's user avatar
  • 719
1 vote
1 answer
3k views

Get all products with a specific attribute code with REST API in Magento 2

Is there is a built in rest API to get ALL products with a specific attribute_code ex. this API https://domain.com/index.php/rest/V1/products/:productID returns .. <item> <...
Jsparo30's user avatar
  • 1,356
2 votes
1 answer
247 views

Magento : Create Layered Navigation API to Show Attributes

I want to fetch these attributes of layered navigation using REST API. Provide me suitable solution.
nachiket shar's user avatar
2 votes
2 answers
3k views

Magento 2 Rest API - how do I add values to dropdown product attribute

I have problems in adding values to an existing product attribute, using the API POST /products/attributes/:attribute_id/options. The corresponding GET API is working fine, as explained below. I have ...
Nicola Lepetit's user avatar
4 votes
0 answers
589 views

How can I remove a custom attribute from a product via REST?

I can add or change a custom attribute of a product, i.e. via curl -X PUT --header "Content-Type: application/json" \ --header "Accept: application/json" \ --header "Authorization: Bearer MYTOKEN" -d ...
Tim Riemenschneider's user avatar
0 votes
1 answer
997 views

How to fetch category products with all attributes in REST api

There are categories in our store like featured and promotional. I fetch them in frontend by using there category id.Now I have fetch them through REST api.I made all the oauth configuration and set ...
Shrikant's user avatar
  • 330
0 votes
0 answers
57 views

Are product attribute names accessible from Magento API?

My goal is to pull this information as a guest but I have tried as both an admin and a guest. My results look like this: URL: {magento_base_url}/m/api/rest/products/category/12 <magento_api> ...
tylersDisplayName's user avatar