cancel
Showing results for 
Search instead for 
Did you mean: 

Can't change product status on backend from API

SOLVED

Can't change product status on backend from API

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
}

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Can't change product status on backend from API

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!"

View solution in original post

4 REPLIES 4

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"

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.

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: Can't change product status on backend from API

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!"

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.