Attribute Set
Interface
The Attribute Set is grouping method of several attributes. It indicates you the attributes used and the order of the attributes.
The API Method allows you:
to get the Attribute Set list with the Attributes included to use with API 'Products'
create new Attribute Sets
Columns that can be used as filters:
Organization
Name
Active
IsSelfService
Actions can be done:
list
create
update
API Methods:
List:
URL: https://api.socratecloud.com/webapi/rest/product/attribute/set/list/{version}?startRow={0}&endRow={100}&accessToken={access_token}
Method: GET
Available filter parameters:
Organization
Name
Active
IsSelfService
Return: JSON object with next format:
{
"data": [
{
"Organization": "Demo SRL",
"Created": "2014-01-07 09:45:56",
"CreatedBy": "SuperUser",
"Updated": "2014-01-07 09:45:56",
"UpdatedBy": "SuperUser",
"Active": true,
"Name": "Height and color",
"Description": null,
"IsSelfService": true,
"attributes": ["Height", "Color"]
},
{
"Organization": "*",
"Created": "2014-01-07 12:16:52",
"CreatedBy": "SuperUser",
"Updated": "2014-01-07 12:16:52",
"UpdatedBy": "SuperUser",
"Active": true,
"Name": "Set 1",
"Description": null,
"IsSelfService": true,
"attributes": ["Some attribute"]
}
],
"totalRows": 6
}
Create:
URL: https://api.socratecloud.com/webapi/rest/product/attribute/set/create/{version}?accessToken={access_token}
Method: POST
Return: attribute set name for success or error message (start with "ERROR: ")
Data format:
{
"Organization": "Demo SRL",
"Active": true,
"Name": "Height and color",
"Description": null,
"IsSelfService": true,
"attributes": ["Height", "Color"]
}
Update:
URL: https://api.socratecloud.com/webapi/rest/product/attribute/set/update/{version}?accessToken={access_token}&Name={attributeSet_Name}
Method: POST
Return: attribute set name for success or error message (start with "ERROR: ")
Data format:
{
"Organization": "Demo SRL",
"Active": true,
"Name": "Height and color",
"Description": null,
"IsSelfService": true,
"attributes": ["Height", "Color"]
}