Removes the search history suggestion in an engine for a user. This will remove the suggestion from being returned in the AdvancedCompleteQueryResponse.recent_search_suggestions for this user. If the user searches the same suggestion again, the new history will override and suggest this suggestion again.
HTTP request
POST https://discoveryengine.googleapis.com/v1beta/{completionConfig=projects/*/locations/*/collections/*/engines/*/completionConfig}:removeSuggestion
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
| completionConfig | 
 Required. The completionConfig of the parent engine resource name for which the search history suggestion is to be removed, such as  | 
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
| { "userPseudoId": string, "userInfo": { object ( | 
| Fields | |
|---|---|
| userPseudoId | 
 Required. A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website. This field should NOT have a fixed value such as  This should be the same identifier as  The field must be a UTF-8 encoded string with a length limit of 128. | 
| userInfo | 
 Optional. Information about the end user. This should be the same identifier information as  | 
| removeTime | 
 Required. Time at which the suggestion was removed. If not set, the current time will be used. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:  | 
| Union field suggestion. The suggestion to be removed.suggestioncan be only one of the following: | |
| searchHistorySuggestion | 
 The search history suggestion to be removed. | 
| removeAllSearchHistorySuggestions | 
 Remove all search history suggestions for the user. | 
Response body
If successful, the response body is empty.
Authorization scopes
Requires one of the following OAuth scopes:
- https://www.googleapis.com/auth/cloud-platform
- https://www.googleapis.com/auth/discoveryengine.readwrite
- https://www.googleapis.com/auth/discoveryengine.assist.readwrite
For more information, see the Authentication Overview.