Save attribute group

PUT /V1/products/attribute-sets/{attributeSetId}/groups

Save attribute group

Path parameters

  • attributeSetId string Required

Body

  • group object Required

    Interface AttributeGroupInterface

    Hide group attributes Show group attributes object
    • attribute_group_id string

      Id

    • attribute_group_name string

      Name

    • attribute_set_id integer

      Attribute set id

    • extension_attributes object

      ExtensionInterface class for @see \Magento\Eav\Api\Data\AttributeGroupInterface

      Hide extension_attributes attributes Show extension_attributes attributes object
      • attribute_group_code string
      • sort_order string

Responses

  • 200

    200 Success.

    Hide response attributes Show response attributes object
    • attribute_group_id string

      Id

    • attribute_group_name string

      Name

    • attribute_set_id integer

      Attribute set id

    • extension_attributes object

      ExtensionInterface class for @see \Magento\Eav\Api\Data\AttributeGroupInterface

      Hide extension_attributes attributes Show extension_attributes attributes object
      • attribute_group_code string
      • sort_order string
  • 401

    401 Unauthorized

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Error details

      Hide errors attributes Show errors attributes object
      • message string

        Error message

      • parameters array[object]

        Error parameters item

        Error parameters item

        Hide parameters attributes Show parameters attributes object
        • resources string

          ACL resource

        • fieldName string

          Missing or invalid field name

        • fieldValue string

          Incorrect field value

    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Error parameters item

      Hide parameters attributes Show parameters attributes object
      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

  • default

    Unexpected error

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Error details

      Hide errors attributes Show errors attributes object
      • message string

        Error message

      • parameters array[object]

        Error parameters item

        Error parameters item

        Hide parameters attributes Show parameters attributes object
        • resources string

          ACL resource

        • fieldName string

          Missing or invalid field name

        • fieldValue string

          Incorrect field value

    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Error parameters item

      Hide parameters attributes Show parameters attributes object
      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

PUT /V1/products/attribute-sets/{attributeSetId}/groups
curl \
 --request PUT 'https://magento2.winkelstraat.mac/rest/all/V1/products/attribute-sets/{attributeSetId}/groups' \
 --data '{"group":{"attribute_group_id":"string","attribute_group_name":"string","attribute_set_id":42,"extension_attributes":{"attribute_group_code":"string","sort_order":"string"}}}'
Request examples
{
  "group": {
    "attribute_group_id": "string",
    "attribute_group_name": "string",
    "attribute_set_id": 42,
    "extension_attributes": {
      "attribute_group_code": "string",
      "sort_order": "string"
    }
  }
}
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 (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 (default)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}