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": "%fieldName is a required field.",
"parameters": {
"fieldName": "attribute_set_id"
}
}
I can't seem to find how to pass the required field and there is no documentation on how that should be passed.
Best Answer
I'm not sure your URL request. But, if you want to call
GET /V1/products/attribute-sets/groups/list
, need an Admin token and addsearchCriteria
. For example:Result:
http://devdocs.magento.com/guides/v2.2/rest/performing-searches.html