title: How to send a put-request with body in Angular with ngResource
body: <p>I can send a put-request with a header with ngResource. My FactoryService looks like this:</p>
  
  <pre><code>angular
  .module("playersServicesModule", ["ngResource", "config"])
  .factory("playersService", ["$resource", "API_ROOT",
  
    function ($resource, API_ROOT) {
      "use strict";
  
      var url = API_ROOT + "/api/footballplayers";
  
      return {
  
        updateFootballPlayer: function (id, column, newValue) {
  
          return $resource(url + '/:Id', { Id: id },
                  {
                    "update": {
                      method: 'PUT', headers: {
                        "Column": column,
                        "NewValue": newValue
                      }
                    }
                  });
        }
  
      };
  </code></pre>
  
  <p>How can i add data to the body of the put-request?</p>