Post Request Body_HTML for Pages API + Material-UI

Shopify Partner
7 0 0

Hi everyone, 


I am building a public app that needs to create a new page based on user inputs and am using the POST method from the shopify pages api. In the post, there is a parameter called 'html_body' where you can provide html code that will become the body of the new page. Unfortunately though, as the name implies only html code is allowed (this is very restrictive - i.e. no styling or prebuilt ui components like material-ui). Is there a way to pass the css and jsx elements along that will render to create the new page as desired?


API Reference: Page Api 


Example allowed code:


Screen Shot 2020-05-25 at 9.42.46 PM.png



Example Desired Code:


Screen Shot 2020-05-25 at 9.45.48 PM.png



Any help would be greatly appreciated! Thank you in advance