GenieACS API push file

How can I push config file to genieACS device trough API using curl?

If only there was some sort of documentation on GenieACS…