    User.current = result
        })
    },

    save: function() {
        return m.request({
            method: &quot;PUT&quot;,
            url: &quot;https://rem-rest-api.herokuapp.com/api/users/:id&quot;,
            data: User.current,
            withCredentials: true,
        })
    }
}

module.exports = User
</code></pre>
<p>In the <code>save</code> method at the bottom, we used the <code>PUT</code> HTTP method to indicate that we are upserting data to the server.</p>
<p>Now try editing the name o