Method: projects.locations.collections.dataStores.suggestionDenyListEntries.import

Imports all SuggestionDenyListEntry for a DataStore.

HTTP request

POST https://discoveryengine.googleapis.com/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/suggestionDenyListEntries:import

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent data store resource name for which to import denylist entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.

Request body

The request body contains data with the following structure:

JSON representation
{

  // Union field source can be only one of the following:
  "inlineSource": {
    object (InlineSource)
  },
  "gcsSource": {
    object (GcsSource)
  }
  // End of list of possible types for union field source.
}
Fields
Union field source. The source of the updated SuggestionDenyList. source can be only one of the following:
inlineSource

object (InlineSource)

The Inline source for the input content for suggestion deny list entries.

gcsSource

object (GcsSource)

Cloud Storage location for the input content.

Only 1 file can be specified that contains all entries to import. Supported values gcsSource.schema for autocomplete suggestion deny list entry imports:

  • suggestion_deny_list (default): One JSON [SuggestionDenyListEntry] per line.

Response body

If successful, the response body contains an instance of Operation.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the parent resource:

  • discoveryengine.suggestionDenyListEntries.import

For more information, see the IAM documentation.