---
updatedAt: 2025-09-24T21:45:07.000Z
agentTools:
  projectIndex: https://docs.quable.com/llms.txt
---

# /attribute_sets/code/{code}

Update an attribute set and add attributes to this attribute set

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "2d049f10adc518320a4a4ebeb07b64db5b919923",
    "title": "Quable PIM/DAM API v4"
  },
  "paths": {
    "/attribute_sets/code/{code}": {
      "put": {
        "description": "Update an attribute set and add attributes to this attribute set",
        "tags": [
          "Data Model"
        ],
        "responses": {
          "200": {
            "description": "Attribute set have been updated",
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "success",
                    "id"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "id": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Attribute set or attribute not found"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "description": "code of the attribute set",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AttributeSetConfig"
              }
            }
          },
          "description": "Attribute set config and array of eav attribute",
          "required": true
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://instance_name.quable.com/api_1.php"
    }
  ],
  "components": {
    "schemas": {
      "AttributeSetConfig": {
        "properties": {
          "name": {
            "type": "string",
            "description": "Attribute Set label in the current l10n locale"
          },
          "description": {
            "type": "string",
            "description": "Attribute Set description in the current l10n locale"
          },
          "fields": {
            "type": "array",
            "description": "Attribute codes to add in the Attribute Set",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
```