title: REST Web Service API: upload/update report template
body: <p>I want to store and deploy report template with my code.</p>
  
  <p>With this one in mind running a report is a two step process:</p>
  
  <ul>
  <li>upload or update existing report template <em>jrxml</em> (it does not have links to other resources like images)</li>
  <li>run it with my data (this one is <a href="https://stackoverflow.com/questions/9538038/jasper-rest-api-run-a-report">done</a>)</li>
  </ul>
  
  <p>The official documentation doesn't contain a minimal example for updating report template</p>
  
  <p>What is raw request which uploads/updates report template <em>xml</em> via <em>JasperReports Server REST API</em>?</p>
  
  <p>I tried this way</p>
  
  <p>here is my <a href="http://pastebin.com/YxeGW2bA" rel="nofollow noreferrer">raw request</a></p>
  
  <p>here is <a href="http://pastebin.com/UBXXhem3" rel="nofollow noreferrer">response</a></p>
  
  <p>here what I see in <a href="http://pastebin.com/HcNqDK0X" rel="nofollow noreferrer">/var/lib/tomcat6/webapps/jasperserver/WEB-INF/logs/jasperserver.log</a></p>
  
  <p>What am I doing wrong? What does <code>400 error: could not find the binary content for resource: /Reports/product_structures_workshops</code> mean?</p>