When calling the POST /template endpoint you need to pass the file parameter, which is the binary representation of the uploaded template file. It would be easier to be able to pass an URL to provide the template file, instead of its binary content. This would also allow to use the application/json content type for the POST /template endpoint, in addition to the multipart/form-data content type.