pify/publication
Sales channel publications. productSet puts a product on no sales
channel; publish lists it on one. Both calls need write_scope.
Types
pub type Publication {
Publication(id: String, name: String)
}
Constructors
-
Publication(id: String, name: String)
Values
pub const list_query: String
pub fn list_variables(after: option.Option(String)) -> json.Json
pub fn online_store(
client: pify.Client,
) -> effect.Effect(
Result(option.Option(String), error.ShopifyError),
key,
)
The Online Store publication’s id, or None when the shop has no
Online Store channel. Publication.name is the only field that names
the channel: 2026-07 marks it deprecated, and the catalog it points
to reads null for the Online Store.
pub const online_store_name: String
The name Shopify gives the Online Store publication.
pub fn publish(
client: pify.Client,
resource_id: String,
publication_id: String,
) -> effect.Effect(Result(Nil, error.ShopifyError), key)
List the product (or another publishable resource) on one publication. Publishing it again changes nothing.
pub const publish_mutation: String
pub fn publish_variables(
resource_id: String,
publication_id: String,
) -> json.Json
pub const write_scope: String
The scope publications and publishablePublish need. It grants
read_publications.