You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to update the attribute "isActive" to true with the same call I get an error:
{
"message": "Could not save category: %1",
"parameters": [
"URL key for specified store already exists."
]
}
When I try to use the PUT method with the following command:
curl -X PUT --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: Bearer abcd' -d '{
"category": {
"name": "TestCategory",
"isActive": true
}
}' 'http://0.0.0.0/index.php/rest/default/V1/categories/76'
I get the error:
{
"message": "Could not save category: %1",
"parameters": [
"The value of attribute "is_active" must be set"
]
}
is_active is set, so I think this is a bug.
Any hints how to update a category attribute with REST?
Regards,
Tobias
The text was updated successfully, but these errors were encountered:
According to contributor guide, tickets without response for two weeks should be closed.
If this issue still reproducible please feel free to create the new one: format new issue according to the Issue reporting guidelines: with steps to reproduce, actual result and expected result and specify Magento version.
I added a category with the following REST-call:
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: Bearer abcd' -d '{
"category": {
"parentId": 2,
"name": "TestCategory",
"isActive": false
}
}' 'http://0.0.0.0/index.php/rest/default/V1/categories'
When I try to update the attribute "isActive" to true with the same call I get an error:
{
"message": "Could not save category: %1",
"parameters": [
"URL key for specified store already exists."
]
}
When I try to use the PUT method with the following command:
curl -X PUT --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: Bearer abcd' -d '{
"category": {
"name": "TestCategory",
"isActive": true
}
}' 'http://0.0.0.0/index.php/rest/default/V1/categories/76'
I get the error:
{
"message": "Could not save category: %1",
"parameters": [
"The value of attribute "is_active" must be set"
]
}
is_active is set, so I think this is a bug.
Any hints how to update a category attribute with REST?
Regards,
Tobias
The text was updated successfully, but these errors were encountered: