---
title: "Update filter template attribute"
method: PUT
path: "/filtertemplate/{filterTemplateId}/attribute"
tags: ["Filter templates"]
---

# Update filter template attribute

`PUT /filtertemplate/{filterTemplateId}/attribute`

Updates (or creates when filter template attribute does not exist) a filter template attribute with the specified data, overrides all fields to the new values.

## Path parameters

- `filterTemplateId` integer, required

## Request body

- FilterTemplateAttributeApiModel — Filter template attribute response model
  - `FilterTemplateId` integer — Id of the filter template the attribute belongs to
  - `AttributeId` integer — Id of the attribute
  - `Name` string — The text that is shown above the filter
  - `Collapsible` boolean — Is the attribute collapsible
  - `Collapsed` boolean — Is the attribute collapsed by default
  - `NumberOfValues` integer — Number of values to show
  - `ShowMoreText` string — Text for show more
  - `ShowLessText` string — Text for show less
  - `IsMultipleChoice` boolean — Is multiple choice, in case of 'DisplayFilter' being 'checkbox' or 'color'
  - `Logic` 'OR' | 'AND' — Optional logic in case of 'DisplayFilter' being 'checkbox' or 'color'.
  - `DisplayFilter` 'Link' | 'Slider' | 'Checkbox' | 'Color' | 'Tree' | 'ClickpointBucketSlider' — Display type of the filter.
  - `NumberOfColumns` integer — The number of columns
  - `ShowNumberOfProducts` boolean — Show the number of products that remains after the value has been selected
  - `ShowIcon` boolean — Enclose a tag that can be replaced by an image in the front-end application
  - `Sequence` integer — Sequence of the attribute, if left empty it will be automatically assigned
  - `SortingOfValues` 'Standard' | 'ProductAmount' | 'Alphabetic' | 'AlphabeticReversed' | 'Derived' | 'Manual' | 'Numerical' | 'NumericalReversed' — The order in which the values of this filter are sorted. By using manual sorting, it is even possible to determine the order
  - `ManualSortingValues` string[] — Ordered list of values when 'SortingOfValues' is set to 'manual'
  - `ManualBackupSorting` 'Standard' | 'ProductAmount' | 'Alphabetic' | 'AlphabeticReversed' | 'Derived' | 'Manual' | 'Numerical' | 'NumericalReversed' — Backup sorting method of remaining values when 'SortingOfValues' is set to 'manual'
  - `AlternativeSorting` 'Standard' | 'ProductAmount' | 'Alphabetic' | 'AlphabeticReversed' | 'Derived' | 'Manual' | 'Numerical' | 'NumericalReversed' — Sorting of values when the filter is expanded
  - `ManualAlternativeSortingValues` string[] — Ordered list of values when 'AlternativeSorting' is set to 'manual'
  - `ManualBackupAlternativeSorting` 'Standard' | 'ProductAmount' | 'Alphabetic' | 'AlphabeticReversed' | 'Derived' | 'Manual' | 'Numerical' | 'NumericalReversed' — Backup sorting method of remaining values when 'AlternativeSorting' is set to 'manual'
  - `ShowExplanation` boolean — Show explanation/help text for the filter.
  - `Explanation` string — The explanation text to show
  - `ShowFilter` boolean — Toggle show filter
  - `ShowFilterPercentageThreshold` integer — If supplied, show filter only when at least the given percentage is achieved for the property 'ae-price'. Between 5 and 100 in increments of 5%
  - `Prefix` string — Prefix
  - `Suffix` string — Suffix
  - `MinDepth` integer — Min depth for category or tree (Attribute source type)
  - `MaxDepth` integer — Max depth for category or tree (Attribute source type)
  - `ShowSelectedFirst` boolean — When a value has been selected, this appears at the top of the list, irrespective of the selected sorting
  - `CssClass` string — Custom css class
  - `HideFilterOnlyOneOption` boolean — Hide filter when there is only one option available.
  - `IsClickPoint` boolean — Is Clickpoint toggle
  - `ClickpointList` number[] — List of clickpoints for when DisplayFilter is set to 'ClickpointBucketSlider' and IsClickPoint is true.
  - `IsBucket` boolean — Is bucket toggle
  - `BucketAmount` integer — Amount of buckets for when DisplayFilter is set to 'ClickpointBucketSlider' and IsBucket is true.
  - `BucketStepSize` integer — Minimal bucket step size for when DisplayFilter is set to 'ClickpointBucketSlider' and IsBucket is true.
  - `SortAutomaticFilterTemplate` boolean — Automatically determine where the filter is placed on the filter template based on usage.
  - `SortAutomaticFilterValues` boolean — Automatically sort the filter values based on usage. If there is not enough data, the ‘sorting the values’ selected below is used.
  - `IsSearchable` boolean — Show the search in attributes list
  - `SearchPlaceholder` string — The text that is shown in the search field
  - `SearchNoResultsText` string — The text that is shown when there are no results
  - `NameTranslations` FilterTemplateTranslationApiModel[] — Translations for the name
    - `LanguageId` integer — Id of language
    - `Value` string — Translation text
  - `ShowMoreTextTranslations` FilterTemplateTranslationApiModel[] — Translations for the show more text
    - `LanguageId` integer — Id of language
    - `Value` string — Translation text
  - `ShowLessTextTranslations` FilterTemplateTranslationApiModel[] — Translations for the show less text
    - `LanguageId` integer — Id of language
    - `Value` string — Translation text
  - `ExplanationTranslations` FilterTemplateTranslationApiModel[] — Translations for the explenation text
    - `LanguageId` integer — Id of language
    - `Value` string — Translation text
  - `SearchPlaceholderTranslations` FilterTemplateTranslationApiModel[] — Translations for the placeholder text
    - `LanguageId` integer — Id of language
    - `Value` string — Translation text
  - `SearchNoResultsTextTranslations` FilterTemplateTranslationApiModel[] — Translations for the no results text
    - `LanguageId` integer — Id of language
    - `Value` string — Translation text
  - `PrefixTranslations` FilterTemplateTranslationApiModel[] — Translations for the prefix text
    - `LanguageId` integer — Id of language
    - `Value` string — Translation text
  - `SuffixTranslations` FilterTemplateTranslationApiModel[] — Translations for the suffix text
    - `LanguageId` integer — Id of language
    - `Value` string — Translation text

## Response `200`

The id of the updated attribute

- integer

## Other responses

- `400` — BadRequest

---

[API](https://skmtc.net/tweakwise/apis/frontend-api.md) · [All operations](https://skmtc.net/tweakwise/apis/frontend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tweakwise/frontend-api/versions/9bd1e2b3633f/schema)
