Skip to main content
Anchor to PublicationUserError

PublicationUserError

object

Defines errors encountered while managing a publication.

•PublicationUserErrorCode

The error code.

•[String!]

The path to the input field that caused the error.

•String!
non-null

The error message.


Was this section helpful?

•mutation

Creates a Publication that controls which Product and Collection customers can access through a Catalog.

When to create a publication

Publications are optional for catalogs. Only create a publication if you need to control which products are visible in a specific catalog context. When a publication isn't associated with a catalog, product availability is determined by the sales channel.

Create a publication if you need to:

  • Restrict product visibility to a subset of your inventory for a specific market or company location
  • Publish different product selections to different contexts

Do NOT create a publication if:

  • You want product availability determined by the sales channel
  • You only need custom pricing (use a price list on the catalog instead)

Configuration options

You can create an empty publication and add products later, or prepopulate it with all existing products. The autoPublish field determines whether the publication automatically adds newly created products.

Arguments

•PublicationCreateInput!
required

The input fields to use when creating the publication.


•mutation

Deletes a publication.

Arguments

•ID!
required

The ID of the publication to delete.


•mutation

Updates a Publication.

You can add or remove products from the publication, with a maximum of 50 items per operation. The autoPublish field determines whether new products automatically display in this publication.

Arguments

•ID!
required

The ID of the publication to update.

•PublicationUpdateInput!
required

The input fields to use when updating the publication.



Was this section helpful?


Was this section helpful?