I\'ve looked around and tried many different methods, but can\'t seem to pass actual data to my controller\'s function.
Here is some code:
var UR
$.ajax({ url: window.serverUrl + 'student/event/' + eventId, type: 'put', data: JSON.stringify(data), headers: { 'x-auth-token': localStorage.accessToken, "Content-Type": "application/json" }, dataType: 'json' })
This worked for me