ApplyRecommendationRequest

  • The request message for RecommendationService.ApplyRecommendation is used to apply recommendations for a customer.

  • It requires the customer ID and a list of operations to apply the recommendations.

  • There is a limit of 100 operations per request.

  • The partial_failure field determines whether invalid operations cause the entire request to fail or if successful operations are carried out while invalid ones return errors.

Request message for RecommendationService.ApplyRecommendation.

Fields

customer_id

string

Required. The ID of the customer with the recommendation.

operations[]

ApplyRecommendationOperation

Required. The list of operations to apply recommendations. If partial_failure=false all recommendations should be of the same type There is a limit of 100 operations per request.

partial_failure

bool

If true, successful operations will be carried out and invalid operations will return errors. If false, operations will be carried out as a transaction if and only if they are all valid. Default is false.