title: Create or Update SharePoint ListItem with hyperlink field
body: <p>I am unable to create or update a SharePoint Online <code>listitem</code> that contains a hyperlink field using Microsoft Graph. I can create or update items to the same list if I remove the hyperlink field from the body of the API call.</p>
  
  <p>For update, I am sending a PATCH request to:</p>
  
  <pre><code>/v1.0/sites/&lt;site&gt;/list/&lt;listid&gt;/items/&lt;item&gt;/fields
  </code></pre>
  
  <p>with the following headers:</p>
  
  <pre><code>"Authorization" : "Bearer &lt;token&gt;"
  "accept" :"application/json;odata.metadata=full;odata.streaming=true"
  </code></pre>
  
  <p>Here is the body:</p>
  
  <pre class="lang-json prettyprint-override"><code>{
      "myUrl": {
          "Description": "http://www.google.com",
          "Url": "http://www.google.com"
      }
  }
  </code></pre>
  
  <p>I will get the following error message in response:</p>
  
  <pre class="lang-json prettyprint-override"><code>{
      "error": {
          "code": "invalidRequest",
          "message": "The request is malformed or incorrect.",
          "innerError": {
              "request-id": "cfe30f57-31ba-4341-89e9-2c1bd4e15539",
              "date": "2017-11-10T21:55:30"
          }
      }
  }
  </code></pre>
  
  <p>It is worth noting that I can update other fields in the list item using the exact headers and target URL, as long as there is not a hyperlink field in the json body.</p>
  
  <p>The format I am sending is the exact format I receive the URL field in when I do a <code>GET</code>.  Does anyone know the appropriate format for sending URL fields back to SharePoint?</p>
  
  <h2>Update 1/8/2018</h2>
  
  <p>I posted this same issue to Microsoft's Graph Github on 11/11/2017 and they have yet to provide an answer. I have heard unofficially that REST operations on listitems that have a nested structure (e.g. hyperlink, user, taxonomy) are not supported at this time.  Here is a link to the issue just in case they answer it later: <a href="https://github.com/microsoftgraph/microsoft-graph-docs/issues/1965" rel="noreferrer">https://github.com/microsoftgraph/microsoft-graph-docs/issues/1965</a></p>
  
  <p>I do have a workaround for hyperlink fields that I am using.  I changed the column on the SharePoint List that was previously a hyperlink to a "Single line of text" field.  When a hyperlink is entered in a Single line text field, it is showing as a underlined and clickable link when you view the event in a browser.  You can't use alternate text if you have a long and ugly URL like with the hyperlink field type, but it works!</p>