cancel
Showing results for 
Search instead for 
Did you mean: 

Rest Api list of attributes Groups

Rest Api list of attributes Groups

Hello everyone, I'm trying to pull out the list of all the attributes groups via REST API, but I have a problem with your request, you can explain how to do, because with my request via url I always get this error:

 

$this->url = 'http://www,magentotest.it/';
$action = 'V1/products/attribute-sets/groups/list';
$link = $this->url.$action.'?&searchCriteria[filterGroups][0][filters][0][field]=attributeSetId&searchCriteria[filterGroups][0][filters][0][value]='.$setId.'&searchCriteria[filter_groups][0][filters][0][condition_type]=eq';

Documentation indicates this:

 

{
  "items": [
    {
      "attributeGroupId": "string",
      "attributeGroupName": "string",
      "attributeSetId": 0,
      "extensionAttributes": {}
    }
  ],
  "searchCriteria": {
    "filterGroups": [
      {
        "filters": [
          {
            "field": "string",
            "value": "string",
            "conditionType": "string"
          }
        ]
      }
    ],
    "sortOrders": [
      {
        "field": "string",
        "direction": "string"
      }
    ],
    "pageSize": 0,
    "currentPage": 0
  },
  "totalCount": 0
}

This is the error that comes back to me:

object(stdClass)#483 (2) { ["message"]=> string(31) "%fieldName is a required field." ["parameters"]=> object(stdClass)#484 (1) { ["fieldName"]=> string(16) "attribute_set_id" } }

Can someone help me?
Thank you