In this part of the documentation, you can learn more about the API's property groups resource. With this resource, it's possible to retrieve and update any property group in your shop. We will also have a look at the associated data structures.
This resource supports the following operations:
Access URL | GET | GET (List) | PUT | PUT (Batch) | POST | DELETE | DELETE (Batch) |
---|---|---|---|---|---|---|---|
/api/propertyGroups |
If you want to access this resource, simply query the following URL:
You can retrieve a property group by using its id
Field | Type | Original Object |
---|---|---|
id | integer (primary key) | |
name | string | |
position | integer | |
comparable | boolean | |
sortMode | integer | |
options | array | Option |
attribute | array | Attribute |
Note the camel case notation for 'sortMode'.
To get more than one property group at once, simply remove the id parameter from the request URL.
Since this returns a list, the following fields will be added to the array:
Field | Type | Comment |
---|---|---|
total | integer | The total number of cache resources |
success | boolean | Indicates if the call was successful or not. |
You can post or put data by querying the following URL:
Field | Type | Original Object |
---|---|---|
id | integer (primary key) | |
name | string | |
position | integer | |
comparable | boolean | |
sortmode | integer |
Note the small case notation for 'sortmode' to go with POST or PUT as opposed for GET.
To delete a property group, simply query this URL with a DELETE
request:
Replace the id
with the specific property group id.