Put jquery with django rest api
<p>I am trying to update my data via ajax jquery.</p>

<p>When I use the api to update the data it works correctly. But when I try to use ajax put it does not update.</p>

<pre><code>$.ajax({
            type: 'PUT',
            url: "/api/attend/" + this.props.id + ".json",
            headers: { 'Authorization': "Token " + token },
            data: JSON.stringify({attend_ts: '2016-07-05T13:44:21.855910Z'}),
            success: (result) =&gt; {
                console.log("success")
            },
            error: function (cb) { cb }
        });
</code></pre>

<p>The data does not update, but jquery returns success at the console.</p>