title: How to call a RESTful API from JS using Backbone?
body: <p>I have a RESTful PUT API that can be called using curl like this: </p>
  
  <pre><code>curl -H "Content-Type: application/json" -X PUT -d "{\"id\":\"xyz\",\"attributeName\":\"privilegedUser\",\"attributeValue\":\"true\"}" https://www.example.com:7777/api/customer/set/attribute -v --insecure --negotiate -u:
  </code></pre>
  
  <p>I am new to Backbone. 
  I am trying to call the same from JS by using Backbone like this (but it doesn't work): </p>
  
  <pre><code>var Attribute = Backbone.Model.extend({
      url: 'https://www.example.com:7777/api/customer/set/attribute'
  });
  
  var privilegeUserAttribute = new Attribute({id: "xyz", attributeName: "privilegedUser"});
  
  privilegeUserAttribute.save({attributeValue: "true"});
  </code></pre>
  
  <p>What am I doing wrong? </p>