title: Creating form or updating an order in a Shopify App
body: <p>I am attempting to create an app that can update existing orders.  I can't seem to figure out out to allow editing.
  Orders API:: <a href="https://help.shopify.com/en/api/reference/orders/order" rel="nofollow noreferrer">https://help.shopify.com/en/api/reference/orders/order</a></p>
  
  <p>I'm wondering how I would set this up.  I have my controller which fetches all Orders.  In the views I have a list of the orders, which i can then click on to display the order page in the admin dashboard.</p>
  
  <p>My goal is to be able to edit the product within the Order, but that looks like it will take combing Orders and Product API (i assume),,, so for now I'm looking to simply update the Note or Name of purchaser as a start.  Just trying to start there for now.  Here's a terrible attempt at updating the name:</p>
  
  <pre><code>&lt;form method="POST" action="https://#{@shop_session.url}/admin/orders.json" data-shopify-app-submit=" "&gt;
    &lt;input name="authenticity_token" value="&lt;%= form_authenticity_token %&gt;" type="hidden"&gt;
    &lt;p&gt;
      &lt;%= form.label :name %&gt;
      &lt;%= form.text_field :shopify_order_name, class: "form-control" %&gt;
  
      &lt;%= form.submit %&gt;
    &lt;/p&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>I'm hoping one of you can guide me in how to correctly format the code along with the API.  There doesn't seem to be any tutorials on this aside from Shopify's API docs, which don't help me in setting this up further than I have gotten in simply displaying the orders.</p>