Unknown API access scope write_publications

Solved
boobooking
New Member
5 0 0

Hi!

 

Documentation for publishablePublish mutation states that I need write_publications access scope.

 

Documentation page for all available API scopes (here) doesn't know anything about that scope.

 

If I try to request that scope during initial application install I'm getting the error: "Oauth error missing_shopify_permission: write_publications, read_publications"

 

What am I doing wrong?

Accepted Solution (1)

Accepted Solutions
Alex_B
Shopify Staff
Shopify Staff
56 4 29

This is an accepted solution.

Hey!

 

For publishing only to the online store, I've found that you can get away but just using `published: true`.

This is currently marked as deprecated, but still works.

Alex | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

View solution in original post

Replies 17 (17)
Alex_B
Shopify Staff
Shopify Staff
56 4 29

Hey there!

 

from a similar thread: https://community.shopify.com/c/Shopify-APIs-SDKs/Set-sales-channel-for-productCreate/m-p/540860#M35...

 

We do have the Publication object, but the required scope (read_publications/write_publications) is currently a protected scope that we are still building out a process for applying for. I'd recommend staying subscribed to our Developer Changelog for any updates to the availability of this object.

Alex | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

boobooking
New Member
5 0 0

Hi, Alex!

 

Thanks for reply.

 

I've started to explore Publication object and publishablePublish mutation just to solve a problem. Initial problem is:

I need to attached freshly created with GraphQL product to the online store. And I can't find a way to do that.

 

When I create a product with REST API - product automatically attached to online store. But situation is different with GraphQL.

 

Please help me with that problem and I won't bother you with protected scopes 🙂

Alex_B
Shopify Staff
Shopify Staff
56 4 29

This is an accepted solution.

Hey!

 

For publishing only to the online store, I've found that you can get away but just using `published: true`.

This is currently marked as deprecated, but still works.

Alex | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

boobooking
New Member
5 0 0

Hi, Alex!

 

I'm trying to avoid deprecated options. But if that's the only way for now, I'm in. Thank you!

Eka
Shopify Partner
1 0 0

How can we follow on this issue?

When the deprecation is going to happen, and when will the problem fix?

 

Thank you.

Alex_B
Shopify Staff
Shopify Staff
56 4 29

Hey Eka!

 

Deprecations will be announced in the changelog, as well as the release notes.

 

Alex | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

HunkyBill
Shopify Expert
4764 54 551

This was over a year ago! And bit me this week.

All the Shopify docs of note tend to use DEPRECATED with all the old Publish attributes, and say to use PublishablePublish, which is still under lockdown?

How are we supposed to resolve this issue? Just use published: true? All this pain for that?

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
Holm
Tourist
8 0 9

It's October 2020 and this still seems completely unresolved. Surely there must be a way to manage publication of products via private apps that is not to the online store?

juan3211
Shopify Partner
86 0 21

still nobody from shopify to solve this?

laltracitta
Tourist
3 0 3

This is getting quite annoying. 

I have to pay 20 USD a month to keep an app just to copy products between channels. 

Should be fixed.

 

HunkyBill
Shopify Expert
4764 54 551

What App are you paying $20/month for that manages your channels?

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
juan3211
Shopify Partner
86 0 21

Why is thy post marked as solved? Please, Shopify experts, where are you? Thanks.

HunkyBill
Shopify Expert
4764 54 551

It is solved. The OP had the problem of creating a product and then ensuring it was assigned to the online store channel. You do that with the deprecated but still functional attributed published and setting that to true. You can also set the status to draft, active or archived, which also works. You just cannot play with the more convoluted and apparently confusing publishing attributes, as they appear to be mired in issues. Nothing to do but wait then.

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
stream7theorem
New Member
1 0 0

@HunkyBill this should not be marked as solved. We are using a different front-end than the default UI and this actually breaks our flow significantly. Could you please re-open this and let us know of any updates? 

HunkyBill
Shopify Expert
4764 54 551

This is not for me to solve for you. If you have problems with Shopify and these scopes, raise the issue with Shopify. I believe the reason this issue was marked as solved was due to the needs of the OP. I also believe, at the time, Shopify revealed those scopes were not released to production concerning publishing, which you can test easily yourself to establish. Do they exist or not. If not, you have to wait for them to be released. It is awkward that Shopify uses machine-generated docs that make it appear certain functionalities are live when they are not, but such is life. At least when they are live and ready, your code will be too.

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
iozyigit
Shopify Partner
23 1 2

What is the grpahQL version of this solution. I created product but it is showing sold out because not in "online store" channel. When I do manually "sold out" message disappear.

https://www.linkedin.com/in/ismailozyigit/
iozyigit
Shopify Partner
23 1 2

Here is workaround I found. I did create product with graphql, later I did update same product with rest API and updated "published_at" property with some date value and now it shows sales channel "online store".

When I created product with grpahql api, saw that "published_scope" is already "web" the missing part was "published_at" value.

 

 

https://www.linkedin.com/in/ismailozyigit/