title: how to add user to sharepoint list item user field using REST api in sp2013?
body: <p>I have a basic sharepoint list with people field in it, now I am trying to use rest api to add new list item and trying to set person field to my alias but it is not working and throwing me below error. looks like it is problem with how my user data is passed but I could not able to find any help online.</p>
  <p>can you guys help with the correct way to make this call, any help is greatly appreciated.</p>
  <p>my Code----------</p>
  <pre><code>function runAjax(){   var d  = JSON.stringify({&quot;__metadata&quot;:{&quot;type&quot;:&quot;SP.Data.RepositoryItem&quot;},&quot;Owners&quot;:&quot;-1;#v-mynme@microsoft.com&quot;});
  jQuery.ajax({ 
      url: &quot;https://microsoft.sharepoint.com/sites/mysite/docstore/_api/web/lists/GetByTitle('Repository')/items(1580) &quot;,
      type: &quot;POST&quot;, 
      headers: { 
          &quot;accept&quot;: &quot;application/json;odata=verbose&quot;, 
          &quot;content-type&quot;: &quot;application/json;odata=verbose&quot;, 
          &quot;X-RequestDigest&quot;: $(&quot;#__REQUESTDIGEST&quot;).val(), 
          &quot;X-HTTP-Method&quot;: &quot;MERGE&quot;, 
          &quot;If-Match&quot;: &quot;*&quot; 
      }, 
      data:d, 
      success: function (_a) { 
          console.log(JSON.stringify(_a)); 
      }, 
      error: function (_e) { 
          console.error(JSON.stringify(_e)); 
      } 
  });}runAjax(); 
  </code></pre>
  <p>error I am getting is</p>
  <pre><code>Updation fail
  {&quot;readyState&quot;:4,&quot;responseText&quot;:&quot;{\&quot;error\&quot;:{\&quot;code\&quot;:\&quot;-1, Microsoft.SharePoint.Client.InvalidClientQueryException\&quot;,\&quot;message\&quot;:{\&quot;lang\&quot;:\&quot;en-US\&quot;,\&quot;value\&quot;:\&quot;A 'PrimitiveValue' node with non-null value was found when trying to read the value of a navigation property; however, a 'StartArray' node, a 'StartObject' node, or a 'PrimitiveValue' node with null value was expected.\&quot;}}}&quot;,&quot;status&quot;:400,&quot;statusText&quot;:&quot;Bad Request&quot;} 
  </code></pre>