cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 rest api - get attributeset by attributesetname

Magento 2 rest api - get attributeset by attributesetname

Hi there,

I try to get a attributeset by its attributesetname.

I tried it with this filter:

 

rest/V1/products/attribute-sets/sets/list?searchCriteria[filterGroups][0][filters][0][field]=attributeSetName&searchCriteria[filterGroups][0][filters][0][value]=color_material&searchCriteria[filterGroups][0][filters][0][conditionType]=eq

 

As response i get:

 

{"items":[{"attribute_set_id":4,"attribute_set_name":"Default","sort_order":1,"entity_type_id":4}],"search_criteria":{"filter_groups":[{"filters":[{"field":"entity_type_code","value":"catalog_product","condition_type":"eq"}]}]},"total_count":1}

 

The attributeset I'm looking for don't exists, but why do I get the default one back, and why is the filter in the response different from the filter in the request?