Was there a solution to this issue? I have a similar issue and it might have been solved here.
How to upload a Custom Theme from scratch using the Gateway API? - Ignition - Inductive Automation Forum