# Save attribute data **PUT /V1/products/attributes/{attributeCode}** Save attribute data ## Servers - https://magento2.winkelstraat.mac/rest/all: https://magento2.winkelstraat.mac/rest/all () ## Parameters ### Path parameters - **attributeCode** (string) ### Body: (object) - **attribute** (object) ## Responses ### 200 200 Success. #### Body: (object) - **extension_attributes** (object) ExtensionInterface class for @see \Magento\Eav\Api\Data\AttributeInterface - **is_wysiwyg_enabled** (boolean) WYSIWYG flag - **is_html_allowed_on_front** (boolean) The HTML tags are allowed on the frontend - **used_for_sort_by** (boolean) It is used for sorting in product listing - **is_filterable** (boolean) It used in layered navigation - **is_filterable_in_search** (boolean) It is used in search results layered navigation - **is_used_in_grid** (boolean) It is used in catalog product grid - **is_visible_in_grid** (boolean) It is visible in catalog product grid - **is_filterable_in_grid** (boolean) It is filterable in catalog product grid - **position** (integer) Position - **apply_to** (array[string]) Apply to value for the element - **is_searchable** (string) The attribute can be used in Quick Search - **is_visible_in_advanced_search** (string) The attribute can be used in Advanced Search - **is_comparable** (string) The attribute can be compared on the frontend - **is_used_for_promo_rules** (string) The attribute can be used for promo rules - **is_visible_on_front** (string) The attribute is visible on the frontend - **used_in_product_listing** (string) The attribute can be used in product listing - **is_visible** (boolean) Attribute is visible on frontend. - **scope** (string) Attribute scope - **attribute_id** (integer) Id of the attribute. - **attribute_code** (string) Code of the attribute. - **frontend_input** (string) HTML for input element. - **entity_type_id** (string) Entity type id - **is_required** (boolean) Attribute is required. - **options** (array[object]) Created from: - **is_user_defined** (boolean) Current attribute has been defined by a user. - **default_frontend_label** (string) Frontend label for default store - **frontend_labels** (array[object]) Interface AttributeFrontendLabelInterface - **note** (string) The note attribute for the element. - **backend_type** (string) Backend type. - **backend_model** (string) Backend model - **source_model** (string) Source model - **default_value** (string) Default value for the element. - **is_unique** (string) This is a unique attribute - **frontend_class** (string) Frontend class of attribute - **validation_rules** (array[object]) Interface AttributeValidationRuleInterface - **custom_attributes** (array[object]) Interface for custom attribute value. ### 401 401 Unauthorized #### Body: (object) - **message** (string) Error message - **errors** (array[object]) Error details - **code** (integer) Error code - **parameters** (array[object]) Error parameters item - **trace** (string) Stack trace ### 400 400 Bad Request #### Body: (object) - **message** (string) Error message - **errors** (array[object]) Error details - **code** (integer) Error code - **parameters** (array[object]) Error parameters item - **trace** (string) Stack trace ### default Unexpected error #### Body: (object) - **message** (string) Error message - **errors** (array[object]) Error details - **code** (integer) Error code - **parameters** (array[object]) Error parameters item - **trace** (string) Stack trace [Powered by Bump.sh](https://bump.sh)