Skip to content

ShopifyAPI::Asset no longer works for updating "config/settings_data.json" #1066

@uurcank

Description

@uurcank

This works in previous api versions but not this one:

   session = ShopifyAPI::Auth::Session.new(shop: uid, access_token: token)
    ShopifyAPI::Context.activate_session(session)
    session
 
 
   themes = ShopifyAPI::Theme.all(session: session)
   theme = themes.first 

     assets = ShopifyAPI::Asset.all(session: session, theme_id:  theme.id,  asset: {"key" => "config/settings_data.json"})
      asset = assets.first
      
      a_value = asset.value
      
      asset.value = a_value 
      asset.save! 
      
      T::Private::Types::Void::VOID

It is supposed to just save the same value and update. ShopifyAPI::Asset.create also returns the same error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions