title: Admin SDK Chromeosdevices method
body: <p>I'm using Google Scripts to maintain a list of Chrome devices on our domain.</p>
  
  <p>I'm using the <code>AdminDirectory.Chromeosdevices.list</code> method to get all the information I require and write it to a sheet.</p>
  
  <p>I am then trying to write a script to write information to the <code>annotatedLocation</code> and <code>annotatedAssetId</code> fields using the  <code>Chromeosdevices.update</code> method.</p>
  
  <p>My problem: I receive a  phrase error using the following, from looking at the suggestion: <code>update(resource, customerId, deviceId, optionalArgs)</code> I don't seem to have a 'resource', I cannot seem to find any way to get this value. </p>
  
  <p>Any suggestions as to how I can get the resource??</p>
  
  <pre><code>var options = {
    "annotatedAssetId": (data[i][13] == "") ? data[i][3] : data[i][13],
    "annotatedLocation": (data[i][14] == "") ? data[i][4] : data[i][14],
    "notes": (data[i][15] == "") ? data[i][7] : data[i][15],
    "orgUnitPath": (data[i][16] == "") ? data[i][15] : data[i][16]
  }
   var device = AdminDirectory.Chromeosdevices.update(data[i][11],"my_customer", data[i][10], options)
  </code></pre>
  
  <p>Thank you</p>