I am trying to retrieve the current value of a custom theme settings variable from the API.
I have tried using the following:
/admin/api/2023-07/themes/[theme_id]/assets.json?asset[key]=config/settings_data.json
/admin/api/2023-07/themes/[theme_id]/assets.json?asset[key]=config/settings_schema.json
but they return only the default values uploaded with the zipped theme.
I know you can access theme like
{{ settings.partner_app_url }}
from Liquid files, so there should be some way to retrieve the variable or the global settings object from the API, right? Which URL or resource should I use for the API calls, whether REST or GraphQL?
I’ve also tried the theme/update webhook, but it doesn’t trigger upon clicking Save on the theme editor.
