Setting tags of articles caused the change of description and image of article

Highlighted
Excursionist
38 0 3

I have set the tags with REST Admin API.

This is the code I used.

article = ShopifyAPI::Article.find(:first, :params => { :blog_id => blog_id, :handle => handle})

article.tags = "tag-1,tag-2"
article.save
Tags are updated successfully but the description of this article has changed and the image of this article is removed.
I am not sure why this happened.
 
 
0 Likes
Highlighted
Shopify Staff
Shopify Staff
1040 139 165

Hey @Yu727,

 

Weird. That should work. Which version of the gem are you using? Are you able to provide a request ID from the response headers?

0 Likes
Highlighted
Excursionist
38 0 3

Hi @scottydont 

Thank you for your reply.

 

I am using shopify_api gem with version 8.1.0

Can I provide you these info instead of request ID?

API_KEY: 9b5109431c34fbe9ce657cf2cf726b4a
Blog ID: 32111198262
Article ID: 384786825327

Hope these info are helpful for you to investigate.

 

Thank you!

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1040 139 165

Are you able to replicate in the console? Is there any code between the first line and the last two lines you posted?

 

I'm running the following with success:

article = ShopifyAPI::Article.find(:first, :params => { :blog_id => ... , :handle => ... })
article.tags = "tag-1,tag-2"
article.save


If you're still stuck, a request ID would be most helpful.

0 Likes
Highlighted
Excursionist
38 0 3

HI @scottydont 

Thank you for your time with me.

 

Sorry. I didn't know you replied.

 

Could you please tell me how I can get a request ID?

 

Thank you.

0 Likes