title: Posting Bundle of Resources using HAPI FHIR
body: <p>I'm looking for help on how to post a bundle containing multiple resources to a HAPI Server. I'm running the [test server][1], and I've tried using both the Jetty server and running it as a docker container. I'm able to successfully start the server, go to the UI and post a patient directly. And I can also post a patient directly from within Postman:</p>
  <pre><code>POST /hapi-fhir-jpaserver/fhir/Patient HTTP/1.1
  Host: localhost:8080
  Content-Type: application/fhir+json
  {
    &quot;resourceType&quot;: &quot;Patient&quot;,
    &quot;name&quot;: [
      {
        &quot;use&quot;: &quot;official&quot;,
        &quot;family&quot;: &quot;Solo&quot;,
        &quot;given&quot;: [
          &quot;Han&quot;
        ]
      }
    ]
  </code></pre>
  <p>This all works fine. However, when I try to post this:</p>
  <pre><code>{
    &quot;resourceType&quot;: &quot;Bundle&quot;,
    &quot;type&quot;: &quot;transaction&quot;,
    &quot;entry&quot;: [
      {
        &quot;resource&quot;: {
          &quot;resourceType&quot;: &quot;Patient&quot;,
          &quot;name&quot;: [
            {
              &quot;use&quot;: &quot;official&quot;,
              &quot;family&quot;: &quot;Stark&quot;,
              &quot;given&quot;: [
                &quot;Anthony&quot;
              ]
            }
          ]
        },
        &quot;request&quot;: {
          &quot;method&quot;: &quot;PUT&quot;,
          &quot;url&quot;: &quot;Patient&quot;
        }
      }
    ]
  }
  </code></pre>
  <p>I receive an &quot;OperationOutcome&quot; error: &quot;Unable to store a Bundle resource on this server with a Bundle.type value of: transaction&quot;</p>
  <p>I get this error both from the web UI and from postman. I can change the type of Bundle to something like &quot;message&quot;, and I don't get the same error. However, when I search, while the whole Bundle has been posted, the patient inside hasn't. Does anyone know how to get the server to read the resources inside a Bundle separately from the Bundle itself?</p>
  <pre><code>  [1]: https://github.com/hapifhir/hapi-fhir-jpaserver-starter
  </code></pre>