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

# Updates a filter template attribute

`PUT /filtertemplate/{filterTemplateId}/attribute`

## Request

- The document declares no server URL.
- Auth: API key in header `TWN-InstanceKey` and API key in header `TWN-Authentication`

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
  - `FilterTemplateId` integer
  - `AttributeId` integer
  - `Collapsible` boolean
  - `Collapsed` boolean
  - `NumberOfValues` integer
  - `IsMultipleChoice` boolean, nullable
  - `Logic` 'OR' | 'AND'
  - `DisplayFilter` 'Link' | 'Slider' | 'Checkbox' | 'Color' | 'Tree' | 'ClickpointBucketSlider'
  - `NumberOfColumns` integer
  - `ShowNumberOfProducts` boolean
  - `ShowIcon` boolean
  - `Sequence` integer, nullable
  - `SortingOfValues` 'Standard' | 'ProductAmount' | 'Alphabetic' | 'AlphabeticReversed' | 'Derived' | 'Manual' | 'Numerical' | 'NumericalReversed'
  - `ManualSortingValues` string[]
  - `ManualBackupSorting` 'Standard' | 'ProductAmount' | 'Alphabetic' | 'AlphabeticReversed' | 'Derived' | 'Manual' | 'Numerical' | 'NumericalReversed'
  - `AlternativeSorting` 'Standard' | 'ProductAmount' | 'Alphabetic' | 'AlphabeticReversed' | 'Derived' | 'Manual' | 'Numerical' | 'NumericalReversed'
  - `ManualAlternativeSortingValues` string[]
  - `ManualBackupAlternativeSorting` 'Standard' | 'ProductAmount' | 'Alphabetic' | 'AlphabeticReversed' | 'Derived' | 'Manual' | 'Numerical' | 'NumericalReversed'
  - `ShowExplanation` boolean
  - `ShowFilter` boolean
  - `ShowFilterPercentageThreshold` integer, nullable
  - `MinDepth` integer, nullable
  - `MaxDepth` integer, nullable
  - `ShowSelectedFirst` boolean
  - `CssClass` string
  - `HideFilterOnlyOneOption` boolean
  - `IsClickPoint` boolean
  - `ClickpointList` number[]
  - `IsBucket` boolean
  - `BucketAmount` integer, nullable
  - `BucketStepSize` integer, nullable
  - `SortAutomaticFilterTemplate` boolean
  - `SortAutomaticFilterValues` boolean
  - `IsSearchable` boolean
  - `NameTranslations` FilterTemplateTranslationApiModel[]
    - `LanguageId` integer
    - `Value` string
  - `ShowMoreTextTranslations` FilterTemplateTranslationApiModel[]
    - `LanguageId` integer
    - `Value` string
  - `ShowLessTextTranslations` FilterTemplateTranslationApiModel[]
    - `LanguageId` integer
    - `Value` string
  - `ExplanationTranslations` FilterTemplateTranslationApiModel[]
    - `LanguageId` integer
    - `Value` string
  - `SearchPlaceholderTranslations` FilterTemplateTranslationApiModel[]
    - `LanguageId` integer
    - `Value` string
  - `SearchNoResultsTextTranslations` FilterTemplateTranslationApiModel[]
    - `LanguageId` integer
    - `Value` string
  - `PrefixTranslations` FilterTemplateTranslationApiModel[]
    - `LanguageId` integer
    - `Value` string
  - `SuffixTranslations` FilterTemplateTranslationApiModel[]
    - `LanguageId` integer
    - `Value` string

## Response `200`

OK

- integer

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/tweakwise/apis/app-api.md) - [All operations](https://skmtc.dev/tweakwise/apis/app-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tweakwise/apis/app-api/revisions/dc936bf76941?raw)
