Hey Aakash! Thanks for the quick reply!
To be honest, I moved on from this problem. I hacked around it by writing the html code directly into the post_content of the shortcode in the database using SQL. Works fine for me, it’s a bit wonky but is stable enough.
I think making the shortcodes editable by the REST API would be a really great feature.