Admin API / Types
SetProductVisibilityOutcome
UnionSetProductVisibilityItemSuccess: the listing has the requested state. ProductNotFoundError: the caller reads no listing with this ID, and nothing changed. UnauthorizedError: the caller reads the listing, but its role cannot change it; requiredRole names the lowest role that can, and is null for PUBLIC on another seller's listing.
union SetProductVisibilityOutcome = ProductNotFoundError | SetProductVisibilityItemSuccess | UnauthorizedError