Welcome to the Jazz Community Forum
How to upload theme using API?
Accepted answer

There is no official API for uploading theme but to upload theme run HTTP POST request to the address https://server/ccm/_theming/save/test with putting theme file content as POST data.