How to update blog id of an Article?

Highlighted
Tourist
10 0 2

Hi friends,

I'm trying to update the blog_id attribute for Articles.

Using the shopify_api gem, I tried doing

article.update_attributes(blog_id: blog_id)

 

but I get a "ActiveResource::ResourceNotFound Exception: Failed. Response code = 404. Response message = Not Found." error.

I'm pretty sure the blog_id is correct as when I query using the blog_id it returns the correct Blog object.

Anything I am doing wrong?

 

Thanks in advance for any help!

 

0 Likes