- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
Bulk import of processed completion dataset.
Request processing is asynchronous. Partial updating is not supported.
The operation is successfully finished only after the imported suggestions are indexed successfully and ready for serving. The process takes hours.
This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.
HTTP request
POST https://retail.googleapis.com/v2beta/{parent=projects/*/locations/*/catalogs/*}/completionData:import
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The catalog which the suggestions dataset belongs to. Format: |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"inputConfig": {
object ( |
Fields | |
---|---|
input |
Required. The desired input location of the data. |
notification |
Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON string of a |
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:
retail.catalogs.import
For more information, see the IAM documentation.