ifies the type of action we&#39;re taking (typically the <code>PUT</code> method <a href="https://en.wiktionary.org/wiki/upsert">upserts</a>), <code>data</code> is the payload that we&#39;re sending to the endpoint and <code>withCredentials</code> means to enable cookies (a requirement for the REM API to work)</p>
<pre><code class="lang-javascript">var count = 0
var increment = function() {
    m.request({
        method: &quot;PUT&quot;,
        url: &quot;//rem-rest-api.herokuapp.com/api/tutorial/1&quot;,