Application Load

IProductFeedbackEditRequest

The physical TypeScript declaration from the Nuxt starter, with linked types and field comments.

IProductFeedbackEditRequest

Send multipart/form-data: data is the JSON object shown in the request; selected files are separate feedback_images parts. Do not set a manual multipart boundary.

app/interfaces/orionplace/products/IProductFeedbackApi.ts
TypeScript
export interface IProductFeedbackEditRequest {
  // Required review text, at most 1024 characters, trimmed of surrounding
  // whitespace. The minimum length is `variables.feedback_text_min_length` from
  // Application Load (`0` means no minimum); a shorter text returns the field
  // error “The review must be at least N characters long.” on `text` with code
  // `text_too_short`.
  text: string;
  // A review needs a whole number from 1 to 5 stars; always send the current
  // value. 0 or a missing value returns the field error “Rate the product from
  // 1 to 5 stars.” on `rating`, also for an older review saved without stars. A
  // reply does not rate: the value is ignored and stays 0.
  rating?: number;
  // IDs of this review’s images to remove. Other saved images are retained.
  images_to_delete?: number[] | null;
}