cancel
Showing results for 
Search instead for 
Did you mean: 

Update Category "Is Active" with REST

Update Category "Is Active" with REST

Hi,

 

I'm trying to set a category active/inactive with REST-API.

I can create the category, but when I try to update it I get a 400 error with message:

{
  "message": "Could not save category: %1",
  "parameters": [
    "URL key for specified store already exists."
  ]
}

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: Bearer xyz' -d '{ "category": { "parentId": 2, "name": "Test", "isActive": true } }' 'http://0.0.0.0/index.php/rest/default/V1/categories'

I use the same payload for creation/update, only the isActive changes from true to false.

Any hints for me?

Thanks in advance,

Tobias