How to publish a product to my online store by API?

Solved
TedKim
New Member
5 0 0

Hi.

I want to publish a product to my online store from my app.

My app is a public app.

I want to use "publishablePublish"(GraphQL mutation), but I saw that "Required access. write_publications access scope. This scope is currently available only to private apps installed on Shopify Plus stores.".

Isn't any way to publish the product to the online store from the public app?

Accepted Solution (1)

Accepted Solutions
Greg_Kujawa
Shopify Partner
1020 83 262

This is an accepted solution.

If you want to publish a product just for the online store, then this might work. Although there's a fair chance this is a deprecated option.

productCreate(input: {
            title: "test item",
            productType: "test",
            published: true
            }
)

View solution in original post

Replies 3 (3)
Greg_Kujawa
Shopify Partner
1020 83 262

This is an accepted solution.

If you want to publish a product just for the online store, then this might work. Although there's a fair chance this is a deprecated option.

productCreate(input: {
            title: "test item",
            productType: "test",
            published: true
            }
)
iozyigit
Shopify Partner
23 1 2

Here is what I did:)

I did not use "publishablePublish".

https://community.shopify.com/c/Shopify-APIs-SDKs/Unknown-API-access-scope-write-publications/m-p/12...

https://www.linkedin.com/in/ismailozyigit/
Marcin
Shopify Partner
1 0 0

`published: true` still works in `2021-07` api version for `ProductInput`. Thanks! I hope it lasts ;).