I'm on a linux system trying to access a cloud jira instance to change the email address of users. When I issue the command below I'm getting a 405 error. Originally I was getting a 301, but I figured out I needed https vs http. But I'm not seeing what the issue is with this request.
curl -verbose -s -f -X PUT -u 'myuser@password' -H 'Content-Type: application/json' --data '{ "name": "admin", "emailAddress": "newemail@domain.com" }' 'https://myjira.atlassian.net/rest/api/2/user?key=admin'
Thanks in advance for any help or advice,
jay