Admin API / Mutations

setProductsVisibility

Shows or hides 1 to 100 listings on the storefront. The caller's listings and the listings of a store that the caller staffs need the SELLER role. A hide of another seller's PUBLIC listing needs the MODERATOR role. No role shows another seller's listing: only its seller and the staff of the seller's store make it PUBLIC. A listing with bids can be hidden. A listing already in the requested state counts as a success and does not change. One result per input ID, in input order. To undo a change of the listings that the caller acts for, call again with each result's previousVisibility.

Requires a client key with one of these scopes: admin:products:writeRequires this member role or higher: SELLER
setProductsVisibility(
  input: SetProductsVisibilityInput!
): SetProductsVisibilityPayload!

Arguments

ArgumentTypeDescription
inputSetProductsVisibilityInput!The listings and the new state.

Return type

SetProductsVisibilityPayload!