Here is the code Im using in jquery
$.ajax({
url: "/rest/api/2/user/username",
type: 'PUT',
data:{emailAddress:"test@mail.com"},
dataType: 'json',
contentType:"application/json",
success: function(res) {
console.log(res);
}
});
and always return STATUS CODE 404
and also ive tried
$.ajax({
url: "/rest/api/2/user?username=username",
type: 'PUT',
data:{emailAddress:"test@mail.com"},
dataType: 'json',
contentType:"application/json",
success: function(res) {
console.log(res);
}
});
and returned status code 400
how could i edit user email in jira api?