{ "uuid": "c149c3c4-8c08-4994-a21f-50dbff352b90", "lastMigration": 29, "name": "Retail API", "endpointPrefix": "", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "9eab354a-f3d9-401f-9db2-b984daae2eb1", "documentation": "Adds the specified CatalogAttribute to the AttributesConfig. If the CatalogAttribute to add already exists, an ALREADY_EXISTS error is returned.", "method": "post", "endpoint": "v2alpha/:attributesConfig:addCatalogAttribute", "responses": [ { "uuid": "6100c7e8-6507-4818-8c0d-02cc7815e380", "body": "{\n \"attributeConfigLevel\": \"{{oneOf (array 'ATTRIBUTE_CONFIG_LEVEL_UNSPECIFIED' 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' 'CATALOG_LEVEL_ATTRIBUTE_CONFIG')}}\",\n \"catalogAttributes\": {},\n \"name\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "6ed75d5c-26ad-4131-839e-d46766c54a13", "documentation": "Removes all specified CatalogAttributes from the AttributesConfig.", "method": "post", "endpoint": "v2alpha/:attributesConfig:batchRemoveCatalogAttributes", "responses": [ { "uuid": "8fd08286-fb4c-4cfd-96bf-0d6370e8277a", "body": "{\n \"deletedCatalogAttributes\": [\n \"\"\n ],\n \"resetCatalogAttributes\": [\n \"\"\n ]\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "0668c957-3f2c-4e5b-96ba-498984f04d4b", "documentation": "Removes the specified CatalogAttribute from the AttributesConfig. If the CatalogAttribute to remove does not exist, a NOT_FOUND error is returned.", "method": "post", "endpoint": "v2alpha/:attributesConfig:removeCatalogAttribute", "responses": [ { "uuid": "ac8b1d19-b17c-4bbb-a7b8-a81813fad82b", "body": "{\n \"attributeConfigLevel\": \"{{oneOf (array 'ATTRIBUTE_CONFIG_LEVEL_UNSPECIFIED' 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' 'CATALOG_LEVEL_ATTRIBUTE_CONFIG')}}\",\n \"catalogAttributes\": {},\n \"name\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "25a40a86-bd49-4b0c-9731-02d7a3393f08", "documentation": "Replaces the specified CatalogAttribute in the AttributesConfig by updating the catalog attribute with the same CatalogAttribute.key. If the CatalogAttribute to replace does not exist, a NOT_FOUND error is returned.", "method": "post", "endpoint": "v2alpha/:attributesConfig:replaceCatalogAttribute", "responses": [ { "uuid": "b10957c9-1fd3-44a5-98b0-981d062a294a", "body": "{\n \"attributeConfigLevel\": \"{{oneOf (array 'ATTRIBUTE_CONFIG_LEVEL_UNSPECIFIED' 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' 'CATALOG_LEVEL_ATTRIBUTE_CONFIG')}}\",\n \"catalogAttributes\": {},\n \"name\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "93297274-6625-4770-88b1-3f3dcb185a6c", "documentation": "Completes the specified prefix with keyword suggestions. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.", "method": "get", "endpoint": "v2alpha/:catalog:completeQuery", "responses": [ { "uuid": "1bdcd3ec-f919-4875-95ea-23e9f179ae36", "body": "{\n \"attributeResults\": {},\n \"attributionToken\": \"\",\n \"completionResults\": [\n {\n \"attributes\": {},\n \"suggestion\": \"\"\n }\n ],\n \"recentSearchResults\": [\n {\n \"recentSearch\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "6b53fb3b-41b3-4b9f-b8e4-22e52bfeaa72", "documentation": "Get which branch is currently default branch set by CatalogService.SetDefaultBranch method under a specified parent catalog.", "method": "get", "endpoint": "v2alpha/:catalog:getDefaultBranch", "responses": [ { "uuid": "1d7f908f-d8f6-446b-9911-b249e344ebf1", "body": "{\n \"branch\": \"\",\n \"note\": \"\",\n \"setTime\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "aad48cfc-bb27-45fd-b676-f158ffea1f56", "documentation": "Set a specified branch id as default branch. API methods such as SearchService.Search, ProductService.GetProduct, ProductService.ListProducts will treat requests using \"default_branch\" to the actual branch id set as default. For example, if `projects/*/locations/*/catalogs/*/branches/1` is set as default, setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/default_branch` is equivalent to setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/1`. Using multiple branches can be useful when developers would like to have a staging branch to test and verify for future usage. When it becomes ready, developers switch on the staging branch using this API while keeping using `projects/*/locations/*/catalogs/*/branches/default_branch` as SearchRequest.branch to route the traffic to this staging branch. CAUTION: If you have live predict/search traffic, switching the default branch could potentially cause outages if the ID space of the new branch is very different from the old one. More specifically: * PredictionService will only return product IDs from branch {newBranch}. * SearchService will only return product IDs from branch {newBranch} (if branch is not explicitly set). * UserEventService will only join events with products from branch {newBranch}.", "method": "post", "endpoint": "v2alpha/:catalog:setDefaultBranch", "responses": [ { "uuid": "53d2031b-bd5a-4883-ada0-b4d496b4447a", "body": "{}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "966b92ca-adfc-4130-b35d-0e1bf1134b54", "documentation": "Deletes a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.", "method": "delete", "endpoint": "v2alpha/:name", "responses": [ { "uuid": "37f11c38-d95e-4ac7-b96d-2e6a841723e7", "body": "{}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "97f919bc-4e48-4e46-9766-c6d9a253c7b0", "documentation": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", "method": "get", "endpoint": "v2alpha/:name", "responses": [ { "uuid": "488a06ea-bcdb-4b91-9886-5fd771bc6002", "body": "{\n \"done\": {{faker 'datatype.boolean'}},\n \"error\": {\n \"code\": {{faker 'number.int' max=99999}},\n \"details\": [\n {}\n ],\n \"message\": \"\"\n },\n \"metadata\": {},\n \"name\": \"\",\n \"response\": {}\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "9d78b992-cf8a-442e-836d-97f999e80abf", "documentation": "Updates a ServingConfig.", "method": "patch", "endpoint": "v2alpha/:name", "responses": [ { "uuid": "660b5172-c45c-4aff-8782-71ac7e195274", "body": "{\n \"boostControlIds\": [\n \"\"\n ],\n \"displayName\": \"\",\n \"diversityLevel\": \"\",\n \"diversityType\": \"{{oneOf (array 'DIVERSITY_TYPE_UNSPECIFIED' 'RULE_BASED_DIVERSITY' 'DATA_DRIVEN_DIVERSITY')}}\",\n \"doNotAssociateControlIds\": [\n \"\"\n ],\n \"dynamicFacetSpec\": {\n \"mode\": \"{{oneOf (array 'MODE_UNSPECIFIED' 'DISABLED' 'ENABLED')}}\"\n },\n \"enableCategoryFilterLevel\": \"\",\n \"facetControlIds\": [\n \"\"\n ],\n \"filterControlIds\": [\n \"\"\n ],\n \"ignoreControlIds\": [\n \"\"\n ],\n \"modelId\": \"\",\n \"name\": \"\",\n \"onewaySynonymsControlIds\": [\n \"\"\n ],\n \"personalizationSpec\": {\n \"mode\": \"{{oneOf (array 'MODE_UNSPECIFIED' 'AUTO' 'DISABLED')}}\"\n },\n \"priceRerankingLevel\": \"\",\n \"redirectControlIds\": [\n \"\"\n ],\n \"replacementControlIds\": [\n \"\"\n ],\n \"solutionTypes\": [\n \"{{oneOf (array 'SOLUTION_TYPE_UNSPECIFIED' 'SOLUTION_TYPE_RECOMMENDATION' 'SOLUTION_TYPE_SEARCH')}}\"\n ],\n \"twowaySynonymsControlIds\": [\n \"\"\n ]\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "db37fbde-7be1-4055-ac3f-5f0a7ec69849", "documentation": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", "method": "get", "endpoint": "v2alpha/:name/operations", "responses": [ { "uuid": "007f33fb-13ec-407b-bf4e-fc1976e5ad7b", "body": "{\n \"nextPageToken\": \"\",\n \"operations\": [\n {\n \"done\": {{faker 'datatype.boolean'}},\n \"error\": {\n \"code\": {{faker 'number.int' max=99999}},\n \"details\": [\n {}\n ],\n \"message\": \"\"\n },\n \"metadata\": {},\n \"name\": \"\",\n \"response\": {}\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "620332b6-3c92-4f6b-a911-13b1cf5a9359", "documentation": "Pauses the training of an existing model.", "method": "post", "endpoint": "v2alpha/:name:pause", "responses": [ { "uuid": "7f508cd2-b088-49b7-9ef1-4a8a3c4147c4", "body": "{\n \"createTime\": \"\",\n \"dataState\": \"{{oneOf (array 'DATA_STATE_UNSPECIFIED' 'DATA_OK' 'DATA_ERROR')}}\",\n \"displayName\": \"\",\n \"filteringOption\": \"{{oneOf (array 'RECOMMENDATIONS_FILTERING_OPTION_UNSPECIFIED' 'RECOMMENDATIONS_FILTERING_DISABLED' 'RECOMMENDATIONS_FILTERING_ENABLED')}}\",\n \"lastTuneTime\": \"\",\n \"name\": \"\",\n \"optimizationObjective\": \"\",\n \"pageOptimizationConfig\": {\n \"pageOptimizationEventType\": \"\",\n \"panels\": [\n {\n \"candidates\": [\n {\n \"servingConfigId\": \"\"\n }\n ],\n \"defaultCandidate\": {\n \"servingConfigId\": \"\"\n },\n \"displayName\": \"\"\n }\n ],\n \"restriction\": \"{{oneOf (array 'RESTRICTION_UNSPECIFIED' 'NO_RESTRICTION' 'UNIQUE_SERVING_CONFIG_RESTRICTION' 'UNIQUE_MODEL_RESTRICTION' 'UNIQUE_MODEL_TYPE_RESTRICTION')}}\"\n },\n \"periodicTuningState\": \"{{oneOf (array 'PERIODIC_TUNING_STATE_UNSPECIFIED' 'PERIODIC_TUNING_DISABLED' 'ALL_TUNING_DISABLED' 'PERIODIC_TUNING_ENABLED')}}\",\n \"servingConfigLists\": [\n {\n \"servingConfigIds\": [\n \"\"\n ]\n }\n ],\n \"servingState\": \"{{oneOf (array 'SERVING_STATE_UNSPECIFIED' 'INACTIVE' 'ACTIVE' 'TUNED')}}\",\n \"trainingState\": \"{{oneOf (array 'TRAINING_STATE_UNSPECIFIED' 'PAUSED' 'TRAINING')}}\",\n \"tuningOperation\": \"\",\n \"type\": \"\",\n \"updateTime\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "a35db79e-bdc0-4aca-8b60-9cdc7d160e93", "documentation": "Resumes the training of an existing model.", "method": "post", "endpoint": "v2alpha/:name:resume", "responses": [ { "uuid": "717f0048-a5d5-4c14-9769-f11033eb5895", "body": "{\n \"createTime\": \"\",\n \"dataState\": \"{{oneOf (array 'DATA_STATE_UNSPECIFIED' 'DATA_OK' 'DATA_ERROR')}}\",\n \"displayName\": \"\",\n \"filteringOption\": \"{{oneOf (array 'RECOMMENDATIONS_FILTERING_OPTION_UNSPECIFIED' 'RECOMMENDATIONS_FILTERING_DISABLED' 'RECOMMENDATIONS_FILTERING_ENABLED')}}\",\n \"lastTuneTime\": \"\",\n \"name\": \"\",\n \"optimizationObjective\": \"\",\n \"pageOptimizationConfig\": {\n \"pageOptimizationEventType\": \"\",\n \"panels\": [\n {\n \"candidates\": [\n {\n \"servingConfigId\": \"\"\n }\n ],\n \"defaultCandidate\": {\n \"servingConfigId\": \"\"\n },\n \"displayName\": \"\"\n }\n ],\n \"restriction\": \"{{oneOf (array 'RESTRICTION_UNSPECIFIED' 'NO_RESTRICTION' 'UNIQUE_SERVING_CONFIG_RESTRICTION' 'UNIQUE_MODEL_RESTRICTION' 'UNIQUE_MODEL_TYPE_RESTRICTION')}}\"\n },\n \"periodicTuningState\": \"{{oneOf (array 'PERIODIC_TUNING_STATE_UNSPECIFIED' 'PERIODIC_TUNING_DISABLED' 'ALL_TUNING_DISABLED' 'PERIODIC_TUNING_ENABLED')}}\",\n \"servingConfigLists\": [\n {\n \"servingConfigIds\": [\n \"\"\n ]\n }\n ],\n \"servingState\": \"{{oneOf (array 'SERVING_STATE_UNSPECIFIED' 'INACTIVE' 'ACTIVE' 'TUNED')}}\",\n \"trainingState\": \"{{oneOf (array 'TRAINING_STATE_UNSPECIFIED' 'PAUSED' 'TRAINING')}}\",\n \"tuningOperation\": \"\",\n \"type\": \"\",\n \"updateTime\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "7cd932f7-fa37-4210-88e9-44818e01e549", "documentation": "Updates inventory information for a Product while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update is enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. When inventory is updated with ProductService.CreateProduct and ProductService.UpdateProduct, the specified inventory field value(s) overwrite any existing value(s) while ignoring the last update time for this field. Furthermore, the last update times for the specified inventory fields are overwritten by the times of the ProductService.CreateProduct or ProductService.UpdateProduct request. If no inventory fields are set in CreateProductRequest.product, then any pre-existing inventory information for this product is used. If no inventory fields are set in SetInventoryRequest.set_mask, then any existing inventory information is preserved. Pre-existing inventory information can only be updated with ProductService.SetInventory, ProductService.AddFulfillmentPlaces, and ProductService.RemoveFulfillmentPlaces. The returned Operations is obsolete after one day, and the GetOperation API returns `NOT_FOUND` afterwards. If conflicting updates are issued, the Operations associated with the stale updates are not marked as done until they are obsolete. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.", "method": "post", "endpoint": "v2alpha/:name:setInventory", "responses": [ { "uuid": "f03502f9-0083-430a-98f1-8b761c69c80c", "body": "{\n \"done\": {{faker 'datatype.boolean'}},\n \"error\": {\n \"code\": {{faker 'number.int' max=99999}},\n \"details\": [\n {}\n ],\n \"message\": \"\"\n },\n \"metadata\": {},\n \"name\": \"\",\n \"response\": {}\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "7b49dc88-292d-4100-87e0-747109871f27", "documentation": "Tunes an existing model.", "method": "post", "endpoint": "v2alpha/:name:tune", "responses": [ { "uuid": "ed7b13d4-c30d-40c7-b89b-d6d7eea806ac", "body": "{\n \"done\": {{faker 'datatype.boolean'}},\n \"error\": {\n \"code\": {{faker 'number.int' max=99999}},\n \"details\": [\n {}\n ],\n \"message\": \"\"\n },\n \"metadata\": {},\n \"name\": \"\",\n \"response\": {}\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "c8b2a269-a3fa-4a5e-8bf7-dbe65dfa90bd", "documentation": "Lists all the Catalogs associated with the project.", "method": "get", "endpoint": "v2alpha/:parent/catalogs", "responses": [ { "uuid": "eb2bd971-ad9d-4b87-af86-92038008283f", "body": "{\n \"catalogs\": [\n {\n \"displayName\": \"\",\n \"merchantCenterLinkingConfig\": {\n \"links\": [\n {\n \"branchId\": \"\",\n \"destinations\": [\n \"\"\n ],\n \"feeds\": [\n {\n \"primaryFeedId\": \"\",\n \"primaryFeedName\": \"\"\n }\n ],\n \"languageCode\": \"\",\n \"merchantCenterAccountId\": \"\",\n \"regionCode\": \"\"\n }\n ]\n },\n \"name\": \"\",\n \"productLevelConfig\": {\n \"ingestionProductType\": \"\",\n \"merchantCenterProductIdField\": \"\"\n }\n }\n ],\n \"nextPageToken\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "e0ed2037-dc95-4400-a3d2-bff8203e2080", "documentation": "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.", "method": "post", "endpoint": "v2alpha/:parent/completionData:import", "responses": [ { "uuid": "a41c5f6c-9e2b-420d-ba28-b9b46e4cb682", "body": "{\n \"done\": {{faker 'datatype.boolean'}},\n \"error\": {\n \"code\": {{faker 'number.int' max=99999}},\n \"details\": [\n {}\n ],\n \"message\": \"\"\n },\n \"metadata\": {},\n \"name\": \"\",\n \"response\": {}\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "a1d0f450-8ed1-42a2-8de0-a856b5f1fea5", "documentation": "Lists all Controls by their parent Catalog.", "method": "get", "endpoint": "v2alpha/:parent/controls", "responses": [ { "uuid": "d10f41d8-7a5a-4f60-bdf2-c142131b404a", "body": "{\n \"controls\": [\n {\n \"associatedServingConfigIds\": [\n \"\"\n ],\n \"displayName\": \"\",\n \"facetSpec\": {\n \"enableDynamicPosition\": {{faker 'datatype.boolean'}},\n \"excludedFilterKeys\": [\n \"\"\n ],\n \"facetKey\": {\n \"caseInsensitive\": {{faker 'datatype.boolean'}},\n \"contains\": [\n \"\"\n ],\n \"intervals\": [\n {\n \"exclusiveMaximum\": {{faker 'number.float'}},\n \"exclusiveMinimum\": {{faker 'number.float'}},\n \"maximum\": {{faker 'number.float'}},\n \"minimum\": {{faker 'number.float'}}\n }\n ],\n \"key\": \"\",\n \"orderBy\": \"\",\n \"prefixes\": [\n \"\"\n ],\n \"query\": \"\",\n \"restrictedValues\": [\n \"\"\n ],\n \"returnMinMax\": {{faker 'datatype.boolean'}}\n },\n \"limit\": {{faker 'number.int' max=99999}}\n },\n \"name\": \"\",\n \"rule\": {\n \"boostAction\": {\n \"boost\": {{faker 'number.float'}},\n \"productsFilter\": \"\"\n },\n \"condition\": {\n \"activeTimeRange\": [\n {\n \"endTime\": \"\",\n \"startTime\": \"\"\n }\n ],\n \"queryTerms\": [\n {\n \"fullMatch\": {{faker 'datatype.boolean'}},\n \"value\": \"\"\n }\n ]\n },\n \"doNotAssociateAction\": {\n \"doNotAssociateTerms\": [\n \"\"\n ],\n \"queryTerms\": [\n \"\"\n ],\n \"terms\": [\n \"\"\n ]\n },\n \"filterAction\": {\n \"filter\": \"\"\n },\n \"ignoreAction\": {\n \"ignoreTerms\": [\n \"\"\n ]\n },\n \"onewaySynonymsAction\": {\n \"onewayTerms\": [\n \"\"\n ],\n \"queryTerms\": [\n \"\"\n ],\n \"synonyms\": [\n \"\"\n ]\n },\n \"redirectAction\": {\n \"redirectUri\": \"\"\n },\n \"replacementAction\": {\n \"queryTerms\": [\n \"\"\n ],\n \"replacementTerm\": \"\",\n \"term\": \"\"\n },\n \"twowaySynonymsAction\": {\n \"synonyms\": [\n \"\"\n ]\n }\n },\n \"searchSolutionUseCase\": [\n \"{{oneOf (array 'SEARCH_SOLUTION_USE_CASE_UNSPECIFIED' 'SEARCH_SOLUTION_USE_CASE_SEARCH' 'SEARCH_SOLUTION_USE_CASE_BROWSE')}}\"\n ],\n \"solutionTypes\": [\n \"{{oneOf (array 'SOLUTION_TYPE_UNSPECIFIED' 'SOLUTION_TYPE_RECOMMENDATION' 'SOLUTION_TYPE_SEARCH')}}\"\n ]\n }\n ],\n \"nextPageToken\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "d8c0a2ad-09e4-4fe6-9878-30886220cd90", "documentation": "Creates a Control. If the Control to create already exists, an ALREADY_EXISTS error is returned.", "method": "post", "endpoint": "v2alpha/:parent/controls", "responses": [ { "uuid": "19927d42-e8f4-439c-9de1-5b07536faa6b", "body": "{\n \"associatedServingConfigIds\": [\n \"\"\n ],\n \"displayName\": \"\",\n \"facetSpec\": {\n \"enableDynamicPosition\": {{faker 'datatype.boolean'}},\n \"excludedFilterKeys\": [\n \"\"\n ],\n \"facetKey\": {\n \"caseInsensitive\": {{faker 'datatype.boolean'}},\n \"contains\": [\n \"\"\n ],\n \"intervals\": [\n {\n \"exclusiveMaximum\": {{faker 'number.float'}},\n \"exclusiveMinimum\": {{faker 'number.float'}},\n \"maximum\": {{faker 'number.float'}},\n \"minimum\": {{faker 'number.float'}}\n }\n ],\n \"key\": \"\",\n \"orderBy\": \"\",\n \"prefixes\": [\n \"\"\n ],\n \"query\": \"\",\n \"restrictedValues\": [\n \"\"\n ],\n \"returnMinMax\": {{faker 'datatype.boolean'}}\n },\n \"limit\": {{faker 'number.int' max=99999}}\n },\n \"name\": \"\",\n \"rule\": {\n \"boostAction\": {\n \"boost\": {{faker 'number.float'}},\n \"productsFilter\": \"\"\n },\n \"condition\": {\n \"activeTimeRange\": [\n {\n \"endTime\": \"\",\n \"startTime\": \"\"\n }\n ],\n \"queryTerms\": [\n {\n \"fullMatch\": {{faker 'datatype.boolean'}},\n \"value\": \"\"\n }\n ]\n },\n \"doNotAssociateAction\": {\n \"doNotAssociateTerms\": [\n \"\"\n ],\n \"queryTerms\": [\n \"\"\n ],\n \"terms\": [\n \"\"\n ]\n },\n \"filterAction\": {\n \"filter\": \"\"\n },\n \"ignoreAction\": {\n \"ignoreTerms\": [\n \"\"\n ]\n },\n \"onewaySynonymsAction\": {\n \"onewayTerms\": [\n \"\"\n ],\n \"queryTerms\": [\n \"\"\n ],\n \"synonyms\": [\n \"\"\n ]\n },\n \"redirectAction\": {\n \"redirectUri\": \"\"\n },\n \"replacementAction\": {\n \"queryTerms\": [\n \"\"\n ],\n \"replacementTerm\": \"\",\n \"term\": \"\"\n },\n \"twowaySynonymsAction\": {\n \"synonyms\": [\n \"\"\n ]\n }\n },\n \"searchSolutionUseCase\": [\n \"{{oneOf (array 'SEARCH_SOLUTION_USE_CASE_UNSPECIFIED' 'SEARCH_SOLUTION_USE_CASE_SEARCH' 'SEARCH_SOLUTION_USE_CASE_BROWSE')}}\"\n ],\n \"solutionTypes\": [\n \"{{oneOf (array 'SOLUTION_TYPE_UNSPECIFIED' 'SOLUTION_TYPE_RECOMMENDATION' 'SOLUTION_TYPE_SEARCH')}}\"\n ]\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "101818bc-5ca5-444c-abd6-b972b9516841", "documentation": "Lists all the models linked to this event store.", "method": "get", "endpoint": "v2alpha/:parent/models", "responses": [ { "uuid": "a52e959d-61f1-41ac-9667-4c00e3be8e64", "body": "{\n \"models\": [\n {\n \"createTime\": \"\",\n \"dataState\": \"{{oneOf (array 'DATA_STATE_UNSPECIFIED' 'DATA_OK' 'DATA_ERROR')}}\",\n \"displayName\": \"\",\n \"filteringOption\": \"{{oneOf (array 'RECOMMENDATIONS_FILTERING_OPTION_UNSPECIFIED' 'RECOMMENDATIONS_FILTERING_DISABLED' 'RECOMMENDATIONS_FILTERING_ENABLED')}}\",\n \"lastTuneTime\": \"\",\n \"name\": \"\",\n \"optimizationObjective\": \"\",\n \"pageOptimizationConfig\": {\n \"pageOptimizationEventType\": \"\",\n \"panels\": [\n {\n \"candidates\": [\n {\n \"servingConfigId\": \"\"\n }\n ],\n \"defaultCandidate\": {\n \"servingConfigId\": \"\"\n },\n \"displayName\": \"\"\n }\n ],\n \"restriction\": \"{{oneOf (array 'RESTRICTION_UNSPECIFIED' 'NO_RESTRICTION' 'UNIQUE_SERVING_CONFIG_RESTRICTION' 'UNIQUE_MODEL_RESTRICTION' 'UNIQUE_MODEL_TYPE_RESTRICTION')}}\"\n },\n \"periodicTuningState\": \"{{oneOf (array 'PERIODIC_TUNING_STATE_UNSPECIFIED' 'PERIODIC_TUNING_DISABLED' 'ALL_TUNING_DISABLED' 'PERIODIC_TUNING_ENABLED')}}\",\n \"servingConfigLists\": [\n {\n \"servingConfigIds\": [\n \"\"\n ]\n }\n ],\n \"servingState\": \"{{oneOf (array 'SERVING_STATE_UNSPECIFIED' 'INACTIVE' 'ACTIVE' 'TUNED')}}\",\n \"trainingState\": \"{{oneOf (array 'TRAINING_STATE_UNSPECIFIED' 'PAUSED' 'TRAINING')}}\",\n \"tuningOperation\": \"\",\n \"type\": \"\",\n \"updateTime\": \"\"\n }\n ],\n \"nextPageToken\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "c94096d1-1cf1-41cb-ae61-b9cf3199fe48", "documentation": "Creates a new model.", "method": "post", "endpoint": "v2alpha/:parent/models", "responses": [ { "uuid": "8af56619-0392-44b0-bf3d-11beeb297240", "body": "{\n \"done\": {{faker 'datatype.boolean'}},\n \"error\": {\n \"code\": {{faker 'number.int' max=99999}},\n \"details\": [\n {}\n ],\n \"message\": \"\"\n },\n \"metadata\": {},\n \"name\": \"\",\n \"response\": {}\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "b83acddb-6087-46d4-9d15-f6799e22ad22", "documentation": "Gets a list of Products.", "method": "get", "endpoint": "v2alpha/:parent/products", "responses": [ { "uuid": "1d5dfbef-83fb-4da4-bd30-7d52ad44564d", "body": "\"\"", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "b7015383-7a11-4eab-8da5-23a92380653c", "documentation": "Creates a Product.", "method": "post", "endpoint": "v2alpha/:parent/products", "responses": [ { "uuid": "fb281085-f4bb-45c4-a911-84e0f218598a", "body": "\"\"", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "1aebfc9b-bbf4-4b41-8a37-45b989aa52d3", "documentation": "Bulk import of multiple Products. Request processing may be synchronous. Non-existing items are created. Note that it is possible for a subset of the Products to be successfully updated.", "method": "post", "endpoint": "v2alpha/:parent/products:import", "responses": [ { "uuid": "30d6aec0-5e85-41cd-988a-1c6362f111f5", "body": "{\n \"done\": {{faker 'datatype.boolean'}},\n \"error\": {\n \"code\": {{faker 'number.int' max=99999}},\n \"details\": [\n {}\n ],\n \"message\": \"\"\n },\n \"metadata\": {},\n \"name\": \"\",\n \"response\": {}\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "0a946812-9818-4877-9818-6a4d26812e14", "documentation": "Permanently deletes all selected Products under a branch. This process is asynchronous. If the request is valid, the removal will be enqueued and processed offline. Depending on the number of Products, this operation could take hours to complete. Before the operation completes, some Products may still be returned by ProductService.GetProduct or ProductService.ListProducts. Depending on the number of Products, this operation could take hours to complete. To get a sample of Products that would be deleted, set PurgeProductsRequest.force to false.", "method": "post", "endpoint": "v2alpha/:parent/products:purge", "responses": [ { "uuid": "886d8e49-8d28-4daf-9c7c-a6178a307a77", "body": "{\n \"done\": {{faker 'datatype.boolean'}},\n \"error\": {\n \"code\": {{faker 'number.int' max=99999}},\n \"details\": [\n {}\n ],\n \"message\": \"\"\n },\n \"metadata\": {},\n \"name\": \"\",\n \"response\": {}\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "73e7aca4-ffb2-4620-aae5-2accd5aeb685", "documentation": "Lists all ServingConfigs linked to this catalog.", "method": "get", "endpoint": "v2alpha/:parent/servingConfigs", "responses": [ { "uuid": "87b5023e-f671-40de-987d-399a673e4758", "body": "{\n \"nextPageToken\": \"\",\n \"servingConfigs\": [\n {\n \"boostControlIds\": [\n \"\"\n ],\n \"displayName\": \"\",\n \"diversityLevel\": \"\",\n \"diversityType\": \"{{oneOf (array 'DIVERSITY_TYPE_UNSPECIFIED' 'RULE_BASED_DIVERSITY' 'DATA_DRIVEN_DIVERSITY')}}\",\n \"doNotAssociateControlIds\": [\n \"\"\n ],\n \"dynamicFacetSpec\": {\n \"mode\": \"{{oneOf (array 'MODE_UNSPECIFIED' 'DISABLED' 'ENABLED')}}\"\n },\n \"enableCategoryFilterLevel\": \"\",\n \"facetControlIds\": [\n \"\"\n ],\n \"filterControlIds\": [\n \"\"\n ],\n \"ignoreControlIds\": [\n \"\"\n ],\n \"modelId\": \"\",\n \"name\": \"\",\n \"onewaySynonymsControlIds\": [\n \"\"\n ],\n \"personalizationSpec\": {\n \"mode\": \"{{oneOf (array 'MODE_UNSPECIFIED' 'AUTO' 'DISABLED')}}\"\n },\n \"priceRerankingLevel\": \"\",\n \"redirectControlIds\": [\n \"\"\n ],\n \"replacementControlIds\": [\n \"\"\n ],\n \"solutionTypes\": [\n \"{{oneOf (array 'SOLUTION_TYPE_UNSPECIFIED' 'SOLUTION_TYPE_RECOMMENDATION' 'SOLUTION_TYPE_SEARCH')}}\"\n ],\n \"twowaySynonymsControlIds\": [\n \"\"\n ]\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "41af48c2-a3ee-4687-ab2e-59241083e3e0", "documentation": "Creates a ServingConfig. A maximum of 100 ServingConfigs are allowed in a Catalog, otherwise a FAILED_PRECONDITION error is returned.", "method": "post", "endpoint": "v2alpha/:parent/servingConfigs", "responses": [ { "uuid": "2c5cc215-bd37-4e13-b873-4ef8e86cffc0", "body": "{\n \"boostControlIds\": [\n \"\"\n ],\n \"displayName\": \"\",\n \"diversityLevel\": \"\",\n \"diversityType\": \"{{oneOf (array 'DIVERSITY_TYPE_UNSPECIFIED' 'RULE_BASED_DIVERSITY' 'DATA_DRIVEN_DIVERSITY')}}\",\n \"doNotAssociateControlIds\": [\n \"\"\n ],\n \"dynamicFacetSpec\": {\n \"mode\": \"{{oneOf (array 'MODE_UNSPECIFIED' 'DISABLED' 'ENABLED')}}\"\n },\n \"enableCategoryFilterLevel\": \"\",\n \"facetControlIds\": [\n \"\"\n ],\n \"filterControlIds\": [\n \"\"\n ],\n \"ignoreControlIds\": [\n \"\"\n ],\n \"modelId\": \"\",\n \"name\": \"\",\n \"onewaySynonymsControlIds\": [\n \"\"\n ],\n \"personalizationSpec\": {\n \"mode\": \"{{oneOf (array 'MODE_UNSPECIFIED' 'AUTO' 'DISABLED')}}\"\n },\n \"priceRerankingLevel\": \"\",\n \"redirectControlIds\": [\n \"\"\n ],\n \"replacementControlIds\": [\n \"\"\n ],\n \"solutionTypes\": [\n \"{{oneOf (array 'SOLUTION_TYPE_UNSPECIFIED' 'SOLUTION_TYPE_RECOMMENDATION' 'SOLUTION_TYPE_SEARCH')}}\"\n ],\n \"twowaySynonymsControlIds\": [\n \"\"\n ]\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "6cef6bd9-6cdd-4815-b3b1-3e9ae2e1ab74", "documentation": "Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a 3rd party domain. This method is used only by the Retail API JavaScript pixel and Google Tag Manager. Users should not call this method directly.", "method": "get", "endpoint": "v2alpha/:parent/userEvents:collect", "responses": [ { "uuid": "260f44f1-4a5e-41a7-8294-e13c54bd7993", "body": "{\n \"contentType\": \"\",\n \"data\": \"\",\n \"extensions\": [\n {}\n ]\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "1f412279-f674-4aad-b4da-7eaa537d77bc", "documentation": "Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. `Operation.response` is of type `ImportResponse`. Note that it is possible for a subset of the items to be successfully inserted. `Operation.metadata` is of type `ImportMetadata`.", "method": "post", "endpoint": "v2alpha/:parent/userEvents:import", "responses": [ { "uuid": "29be581e-88bf-469f-a9c6-e63040df8a72", "body": "{\n \"done\": {{faker 'datatype.boolean'}},\n \"error\": {\n \"code\": {{faker 'number.int' max=99999}},\n \"details\": [\n {}\n ],\n \"message\": \"\"\n },\n \"metadata\": {},\n \"name\": \"\",\n \"response\": {}\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "3a40152e-d100-46cb-b84c-88f0c49eeaa9", "documentation": "Deletes permanently all user events specified by the filter provided. Depending on the number of events specified by the filter, this operation could take hours or days to complete. To test a filter, use the list command first.", "method": "post", "endpoint": "v2alpha/:parent/userEvents:purge", "responses": [ { "uuid": "d3b3e1ad-34e5-4d16-a480-62a9e04d0fa6", "body": "{\n \"done\": {{faker 'datatype.boolean'}},\n \"error\": {\n \"code\": {{faker 'number.int' max=99999}},\n \"details\": [\n {}\n ],\n \"message\": \"\"\n },\n \"metadata\": {},\n \"name\": \"\",\n \"response\": {}\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "37c5edaf-e97a-4d54-a584-7bf192ac5f57", "documentation": "Starts a user-event rejoin operation with latest product catalog. Events are not annotated with detailed product information for products that are missing from the catalog when the user event is ingested. These events are stored as unjoined events with limited usage on training and serving. You can use this method to start a join operation on specified events with the latest version of product catalog. You can also use this method to correct events joined with the wrong product catalog. A rejoin operation can take hours or days to complete.", "method": "post", "endpoint": "v2alpha/:parent/userEvents:rejoin", "responses": [ { "uuid": "f2036473-32d0-4f6a-9da2-56d52683e190", "body": "{\n \"done\": {{faker 'datatype.boolean'}},\n \"error\": {\n \"code\": {{faker 'number.int' max=99999}},\n \"details\": [\n {}\n ],\n \"message\": \"\"\n },\n \"metadata\": {},\n \"name\": \"\",\n \"response\": {}\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "75c6ec90-2885-4f43-a4f7-8d8fd6dd044c", "documentation": "Writes a single user event.", "method": "post", "endpoint": "v2alpha/:parent/userEvents:write", "responses": [ { "uuid": "332b4fe3-58e2-40ea-99b5-240fdd2b3594", "body": "\"\"", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "fdb093c8-18fb-4834-af1d-4c577fe84dc1", "documentation": "Makes a recommendation prediction.", "method": "post", "endpoint": "v2alpha/:placement:predict", "responses": [ { "uuid": "a93499ee-f6f9-4e95-8f1b-f0e38fcd0f8e", "body": "{\n \"attributionToken\": \"\",\n \"missingIds\": [\n \"\"\n ],\n \"results\": [\n {\n \"id\": \"\",\n \"metadata\": {}\n }\n ],\n \"validateOnly\": {{faker 'datatype.boolean'}}\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "b2e4f908-04d9-4a15-a8ab-f8bb95bd94e1", "documentation": "Performs a search. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.", "method": "post", "endpoint": "v2alpha/:placement:search", "responses": [ { "uuid": "b3d80967-2301-4f71-8237-a7c4d3907143", "body": "\"\"", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "8b8225ef-0f40-462e-9c3e-98564cf6691c", "documentation": "Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.", "method": "post", "endpoint": "v2alpha/:product:addFulfillmentPlaces", "responses": [ { "uuid": "be4c7a28-c9b1-4674-9e96-80e0c4cd5691", "body": "{\n \"done\": {{faker 'datatype.boolean'}},\n \"error\": {\n \"code\": {{faker 'number.int' max=99999}},\n \"details\": [\n {}\n ],\n \"message\": \"\"\n },\n \"metadata\": {},\n \"name\": \"\",\n \"response\": {}\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "03cdc235-c516-4750-99de-bf94358013fb", "documentation": "Updates local inventory information for a Product at a list of places, while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating inventory information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be modified using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.", "method": "post", "endpoint": "v2alpha/:product:addLocalInventories", "responses": [ { "uuid": "25c2520a-87e0-4a72-828c-95e0741d2200", "body": "{\n \"done\": {{faker 'datatype.boolean'}},\n \"error\": {\n \"code\": {{faker 'number.int' max=99999}},\n \"details\": [\n {}\n ],\n \"message\": \"\"\n },\n \"metadata\": {},\n \"name\": \"\",\n \"response\": {}\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "8058d795-e14a-4fed-9046-abfd47d6d91c", "documentation": "Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.", "method": "post", "endpoint": "v2alpha/:product:removeFulfillmentPlaces", "responses": [ { "uuid": "d5b00efe-2d84-4c53-bcc8-e7a51648c8ac", "body": "{\n \"done\": {{faker 'datatype.boolean'}},\n \"error\": {\n \"code\": {{faker 'number.int' max=99999}},\n \"details\": [\n {}\n ],\n \"message\": \"\"\n },\n \"metadata\": {},\n \"name\": \"\",\n \"response\": {}\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "3609d648-4c25-4cdf-9504-e77191a11686", "documentation": "Remove local inventory information for a Product at a list of places at a removal timestamp. This process is asynchronous. If the request is valid, the removal will be enqueued and processed downstream. As a consequence, when a response is returned, removals are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be removed using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.", "method": "post", "endpoint": "v2alpha/:product:removeLocalInventories", "responses": [ { "uuid": "e2370fd5-e65b-4e0f-886b-1bbdea33fdc8", "body": "{\n \"done\": {{faker 'datatype.boolean'}},\n \"error\": {\n \"code\": {{faker 'number.int' max=99999}},\n \"details\": [\n {}\n ],\n \"message\": \"\"\n },\n \"metadata\": {},\n \"name\": \"\",\n \"response\": {}\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "92ad69fb-f67b-4c35-9fd5-af158b364827", "documentation": "Enables a Control on the specified ServingConfig. The control is added in the last position of the list of controls it belongs to (e.g. if it's a facet spec control it will be applied in the last position of servingConfig.facetSpecIds) Returns a ALREADY_EXISTS error if the control has already been applied. Returns a FAILED_PRECONDITION error if the addition could exceed maximum number of control allowed for that type of control.", "method": "post", "endpoint": "v2alpha/:servingConfig:addControl", "responses": [ { "uuid": "6c3024dc-345f-4532-97a0-57342639d181", "body": "{\n \"boostControlIds\": [\n \"\"\n ],\n \"displayName\": \"\",\n \"diversityLevel\": \"\",\n \"diversityType\": \"{{oneOf (array 'DIVERSITY_TYPE_UNSPECIFIED' 'RULE_BASED_DIVERSITY' 'DATA_DRIVEN_DIVERSITY')}}\",\n \"doNotAssociateControlIds\": [\n \"\"\n ],\n \"dynamicFacetSpec\": {\n \"mode\": \"{{oneOf (array 'MODE_UNSPECIFIED' 'DISABLED' 'ENABLED')}}\"\n },\n \"enableCategoryFilterLevel\": \"\",\n \"facetControlIds\": [\n \"\"\n ],\n \"filterControlIds\": [\n \"\"\n ],\n \"ignoreControlIds\": [\n \"\"\n ],\n \"modelId\": \"\",\n \"name\": \"\",\n \"onewaySynonymsControlIds\": [\n \"\"\n ],\n \"personalizationSpec\": {\n \"mode\": \"{{oneOf (array 'MODE_UNSPECIFIED' 'AUTO' 'DISABLED')}}\"\n },\n \"priceRerankingLevel\": \"\",\n \"redirectControlIds\": [\n \"\"\n ],\n \"replacementControlIds\": [\n \"\"\n ],\n \"solutionTypes\": [\n \"{{oneOf (array 'SOLUTION_TYPE_UNSPECIFIED' 'SOLUTION_TYPE_RECOMMENDATION' 'SOLUTION_TYPE_SEARCH')}}\"\n ],\n \"twowaySynonymsControlIds\": [\n \"\"\n ]\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "f194fcb5-e64d-4a32-beb3-47442dbbe57d", "documentation": "Disables a Control on the specified ServingConfig. The control is removed from the ServingConfig. Returns a NOT_FOUND error if the Control is not enabled for the ServingConfig.", "method": "post", "endpoint": "v2alpha/:servingConfig:removeControl", "responses": [ { "uuid": "3f92cfc2-007d-4ff9-88b7-901bb650b5fd", "body": "{\n \"boostControlIds\": [\n \"\"\n ],\n \"displayName\": \"\",\n \"diversityLevel\": \"\",\n \"diversityType\": \"{{oneOf (array 'DIVERSITY_TYPE_UNSPECIFIED' 'RULE_BASED_DIVERSITY' 'DATA_DRIVEN_DIVERSITY')}}\",\n \"doNotAssociateControlIds\": [\n \"\"\n ],\n \"dynamicFacetSpec\": {\n \"mode\": \"{{oneOf (array 'MODE_UNSPECIFIED' 'DISABLED' 'ENABLED')}}\"\n },\n \"enableCategoryFilterLevel\": \"\",\n \"facetControlIds\": [\n \"\"\n ],\n \"filterControlIds\": [\n \"\"\n ],\n \"ignoreControlIds\": [\n \"\"\n ],\n \"modelId\": \"\",\n \"name\": \"\",\n \"onewaySynonymsControlIds\": [\n \"\"\n ],\n \"personalizationSpec\": {\n \"mode\": \"{{oneOf (array 'MODE_UNSPECIFIED' 'AUTO' 'DISABLED')}}\"\n },\n \"priceRerankingLevel\": \"\",\n \"redirectControlIds\": [\n \"\"\n ],\n \"replacementControlIds\": [\n \"\"\n ],\n \"solutionTypes\": [\n \"{{oneOf (array 'SOLUTION_TYPE_UNSPECIFIED' 'SOLUTION_TYPE_RECOMMENDATION' 'SOLUTION_TYPE_SEARCH')}}\"\n ],\n \"twowaySynonymsControlIds\": [\n \"\"\n ]\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "", "keyPath": "", "caPath": "", "passphrase": "" }, "cors": true, "headers": [], "proxyReqHeaders": [{ "key": "", "value": "" }], "proxyResHeaders": [{ "key": "", "value": "" }], "data": [], "folders": [], "rootChildren": [ { "type": "route", "uuid": "9eab354a-f3d9-401f-9db2-b984daae2eb1" }, { "type": "route", "uuid": "6ed75d5c-26ad-4131-839e-d46766c54a13" }, { "type": "route", "uuid": "0668c957-3f2c-4e5b-96ba-498984f04d4b" }, { "type": "route", "uuid": "25a40a86-bd49-4b0c-9731-02d7a3393f08" }, { "type": "route", "uuid": "93297274-6625-4770-88b1-3f3dcb185a6c" }, { "type": "route", "uuid": "6b53fb3b-41b3-4b9f-b8e4-22e52bfeaa72" }, { "type": "route", "uuid": "aad48cfc-bb27-45fd-b676-f158ffea1f56" }, { "type": "route", "uuid": "966b92ca-adfc-4130-b35d-0e1bf1134b54" }, { "type": "route", "uuid": "97f919bc-4e48-4e46-9766-c6d9a253c7b0" }, { "type": "route", "uuid": "9d78b992-cf8a-442e-836d-97f999e80abf" }, { "type": "route", "uuid": "db37fbde-7be1-4055-ac3f-5f0a7ec69849" }, { "type": "route", "uuid": "620332b6-3c92-4f6b-a911-13b1cf5a9359" }, { "type": "route", "uuid": "a35db79e-bdc0-4aca-8b60-9cdc7d160e93" }, { "type": "route", "uuid": "7cd932f7-fa37-4210-88e9-44818e01e549" }, { "type": "route", "uuid": "7b49dc88-292d-4100-87e0-747109871f27" }, { "type": "route", "uuid": "c8b2a269-a3fa-4a5e-8bf7-dbe65dfa90bd" }, { "type": "route", "uuid": "e0ed2037-dc95-4400-a3d2-bff8203e2080" }, { "type": "route", "uuid": "a1d0f450-8ed1-42a2-8de0-a856b5f1fea5" }, { "type": "route", "uuid": "d8c0a2ad-09e4-4fe6-9878-30886220cd90" }, { "type": "route", "uuid": "101818bc-5ca5-444c-abd6-b972b9516841" }, { "type": "route", "uuid": "c94096d1-1cf1-41cb-ae61-b9cf3199fe48" }, { "type": "route", "uuid": "b83acddb-6087-46d4-9d15-f6799e22ad22" }, { "type": "route", "uuid": "b7015383-7a11-4eab-8da5-23a92380653c" }, { "type": "route", "uuid": "1aebfc9b-bbf4-4b41-8a37-45b989aa52d3" }, { "type": "route", "uuid": "0a946812-9818-4877-9818-6a4d26812e14" }, { "type": "route", "uuid": "73e7aca4-ffb2-4620-aae5-2accd5aeb685" }, { "type": "route", "uuid": "41af48c2-a3ee-4687-ab2e-59241083e3e0" }, { "type": "route", "uuid": "6cef6bd9-6cdd-4815-b3b1-3e9ae2e1ab74" }, { "type": "route", "uuid": "1f412279-f674-4aad-b4da-7eaa537d77bc" }, { "type": "route", "uuid": "3a40152e-d100-46cb-b84c-88f0c49eeaa9" }, { "type": "route", "uuid": "37c5edaf-e97a-4d54-a584-7bf192ac5f57" }, { "type": "route", "uuid": "75c6ec90-2885-4f43-a4f7-8d8fd6dd044c" }, { "type": "route", "uuid": "fdb093c8-18fb-4834-af1d-4c577fe84dc1" }, { "type": "route", "uuid": "b2e4f908-04d9-4a15-a8ab-f8bb95bd94e1" }, { "type": "route", "uuid": "8b8225ef-0f40-462e-9c3e-98564cf6691c" }, { "type": "route", "uuid": "03cdc235-c516-4750-99de-bf94358013fb" }, { "type": "route", "uuid": "8058d795-e14a-4fed-9046-abfd47d6d91c" }, { "type": "route", "uuid": "3609d648-4c25-4cdf-9504-e77191a11686" }, { "type": "route", "uuid": "92ad69fb-f67b-4c35-9fd5-af158b364827" }, { "type": "route", "uuid": "f194fcb5-e64d-4a32-beb3-47442dbbe57d" } ] }