Admin API / Types
UpdateProductPayload
UnionThe result of updateProduct. AuctionInProgressError: the live auction of the listing is running, so its price and settings cannot change. ProductLockedError: the auction of the listing has a bid or a winner, or its giveaway started. ProductMediaChangedError: the stored photos and videos are not expectedMediaIds. ProductNotFoundError: the caller reads no listing with this ID. ProductValidationError: the input breaks one or more listing rules. ProductVariantsChangedError: the stored variants are not expectedVariantIds. SaleModeNotAllowedError: the store does not allow the format, or members cannot sell. UnauthorizedError: the caller reads the listing but cannot make this change; requiredRole is the lowest role that can, or null when no role helps. An error member changes nothing.
union UpdateProductPayload = AuctionInProgressError | ProductLockedError | ProductMediaChangedError | ProductNotFoundError | ProductValidationError | ProductVariantsChangedError | SaleModeNotAllowedError | UnauthorizedError | UpdateProductSuccessMembers
AuctionInProgressErrorProductLockedErrorProductMediaChangedErrorProductNotFoundErrorProductValidationErrorProductVariantsChangedErrorSaleModeNotAllowedErrorUnauthorizedErrorUpdateProductSuccess