- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- InlineSource
Bulk import of multiple SampleQuerys. Sample queries that already exist may be deleted.
Note: It is possible for a subset of the SampleQuerys to be successfully imported.
HTTP request
POST https://discoveryengine.googleapis.com/v1beta/{parent=projects/*/locations/*/sampleQuerySets/*}/sampleQueries:import
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
| parent | 
 Required. The parent sample query set resource name, such as  If the caller does not have permission to list  | 
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
| { "errorConfig": { object ( | 
| Fields | |
|---|---|
| errorConfig | 
 The desired location of errors incurred during the Import. | 
| Union field source. The source of the sample queries.sourcecan be only one of the following: | |
| inlineSource | 
 The Inline source for sample query entries. | 
| gcsSource | 
 Cloud Storage location for the input content. | 
| bigquerySource | 
 BigQuery input source. | 
Response body
If successful, the response body contains an instance of Operation.
Authorization scopes
Requires one of the following OAuth scopes:
- https://www.googleapis.com/auth/cloud-platform
- https://www.googleapis.com/auth/discoveryengine.readwrite
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent resource:
- discoveryengine.sampleQueries.import
For more information, see the IAM documentation.
InlineSource
The inline source for SampleQuerys.
| JSON representation | 
|---|
| {
  "sampleQueries": [
    {
      object ( | 
| Fields | |
|---|---|
| sampleQueries[] | 
 Required. A list of  |