Updating User Theme via API

Hi there,

Within our app, we use an embedded web view to display a Bettermode platform to our users. We recently updated our app to support light and dark mode, and are really happy to see that Bettermode now supports this as well. Thanks for all the work you have put in to get something like this setup and working - it looks amazing!

To get everything working correctly, we would need to sync the current theme of Bettermode to the user's in-app theme. That is, we would need to update their theme preference whenever they change their theme via the app. Having a quick look at your docs, it seems this might be possible via a GraphQL mutation on your API? Specifically,upsertTheme?

Would you be able to confirm if it is possible to do this/provide an example of the required query?

Regards and many thanks,

Charlie

8 replies