I created a form to allow users to update their information. They login first and their userId and access token are saved successfully.
I'm trying to process the updated data from the form like this:
$.ajax({
type: "PUT",
url: 'http://api.everlive.com/v1/' + evKey + '/Users/' + sessionStorage.userId,
headers: { "Authorization": sessionStorage.accessToken},
contentType: "application/json",
data: JSON.stringify(object),
success: function (data) {
alert(JSON.stringify(data));
},
error: function (error) {
alert(JSON.stringify(error));
}
});
When the request is processed I get this error back:
UPDATE access on type 'Users' denied for anonymous user.","errorCode":603
Also tried the javascript SDK but had the same result.
Any suggestions about what I'm doing wrong? There is no problem logging the user in and getting the access token.