---
title: "Update autocomplete suggestion"
method: PUT
path: "/suggestion/autocomplete"
tags: ["Suggestions"]
---

# Update autocomplete suggestion

`PUT /suggestion/autocomplete`

## Request body

- AutocompleteSuggestionApiModel — Autocomplete suggestion
  - `Id` integer — Autocomplete suggestion id
  - `CategoryId` integer — Category id
  - `Items` AutocompleteSuggestionItemApiModel[] — Autocomplete suggestion items
    - `ItemId` integer — Autocomplete suggestion item id.
    - `Type` 'SearchPhrase' | 'Category' | 'Facet' | 'Product' — Gets or sets the type of the autocomplete suggestion item.
    - `GroupName` string — Gets or sets the group name.
    - `AttributeId` integer — Gets or sets the attribute ID.
    - `SuggestionsToShow` integer — Gets or sets the number of suggestions to show.
    - `GroupFirstResultOnCategory` boolean — Gets or sets a value indicating whether to group the first result on category.
    - `Active` boolean — Gets or sets a value indicating whether the item is active.
    - `Order` integer — Gets or sets the order of the item.
    - `ExcludedCategories` integer[] — Gets or sets the excluded categories.
    - `PrioritizedCategories` AutocompleteSuggestionItemCategoryOrderApiModel[] — Gets or sets the prioritized categories.
      - `CategoryId` integer — Category id
      - `Order` integer — Category Order

## Response `200`

The id of the updated autocomplete suggestion

- 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/revisions/9bd1e2b3633f/schema)
