- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm trying to deactivate/activate the products via API with the PUT however when I send the request it deactivates/activates the product in the frontend but in the magento admin the old status continues, if consulted via GET the product it responds with the correct status, only in the backend that it's not updating.
I was using version 2.4.4 and now I updated to 2.4.6-p1 and still the same result
my request on /products/SKU is
{ "product": { "sku": "6230", "status":2, "visibility": 4 }, "saveOptions": true }
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @guilhermew6255
It seems that you were checking the product status under the All store view. Please ensure to check under the Default store view (or the specific store if applicable) as it should display the correct results in the admin as well.
Thanks
Find helpful ? Consider Giving Kudos to this post.
Problem solved? Click Accept as Solution!"
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Can't change product status on backend from API
Hello @guilhermew6255
try the below link for the update product
https://meetanshi.com/blog/create-update-product-using-rest-api-in-magento-2/
------------------------------------------------
If you've found one of my answers helpful, please give "Kudos" or "Accept as Solution"
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Can't change product status on backend from API
Hello @guilhermew6255
Ensure that the API user or integration you're using has the necessary permissions to update product status. Check the user roles and permissions in the Magento admin to confirm that it has the appropriate access.
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @guilhermew6255
It seems that you were checking the product status under the All store view. Please ensure to check under the Default store view (or the specific store if applicable) as it should display the correct results in the admin as well.
Thanks
Find helpful ? Consider Giving Kudos to this post.
Problem solved? Click Accept as Solution!"
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Can't change product status on backend from API
I also can't change product status on my magento based site. Kindly do lemme know if you have found any proper solution.