Save attribute group
application/json
PUT
/V1/products/attribute-sets/{attributeSetId}/groups
cURL (application/json)
curl \
--request PUT 'https://magento2.winkelstraat.mac/rest/all/V1/products/attribute-sets/{attributeSetId}/groups' \
--header "Content-Type: application/json" \
--data '{"group":{"attribute_group_id":"string","attribute_group_name":"string","attribute_set_id":42,"extension_attributes":{"attribute_group_code":"string","sort_order":"string"}}}'
curl \
--request PUT 'https://magento2.winkelstraat.mac/rest/all/V1/products/attribute-sets/{attributeSetId}/groups' \
--header "Content-Type: application/xml"
Request examples
{
"group": {
"attribute_group_id": "string",
"attribute_group_name": "string",
"attribute_set_id": 42,
"extension_attributes": {
"attribute_group_code": "string",
"sort_order": "string"
}
}
}
Request examples
<?xml version="1.0" encoding="UTF-8"?>
<root>
<group>
<attribute-group-id>string</attribute-group-id>
<attribute-group-name>string</attribute-group-name>
<attribute-set-id type="integer">42</attribute-set-id>
<extension-attributes>
<attribute-group-code>string</attribute-group-code>
<sort-order>string</sort-order>
</extension-attributes>
</group>
</root>
Response examples (200)
{
"attribute_group_id": "string",
"attribute_group_name": "string",
"attribute_set_id": 42,
"extension_attributes": {
"attribute_group_code": "string",
"sort_order": "string"
}
}
Response examples (200)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<attribute-group-id>string</attribute-group-id>
<attribute-group-name>string</attribute-group-name>
<attribute-set-id type="integer">42</attribute-set-id>
<extension-attributes>
<attribute-group-code>string</attribute-group-code>
<sort-order>string</sort-order>
</extension-attributes>
</root>
Response examples (401)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (401)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<message>string</message>
<errors type="array">
<error>
<message>string</message>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
</error>
</errors>
<code type="integer">42</code>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
<trace>string</trace>
</root>
Response examples (default)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (default)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<message>string</message>
<errors type="array">
<error>
<message>string</message>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
</error>
</errors>
<code type="integer">42</code>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
<trace>string</trace>
</root>