I would like to disable/suspend a user via Rest Api.
I last try was to send the action = false to /rest/api/2/user but it only ends up with a 405 method put not allowed.
I am stuck is this problem for longer. I struggle a lot with Atlassian because every time I try to look for something I end up on a community/forum post because the documentation is not very helpful.
As far as I have gotten is getting the account Id, display name and email. But with that information I never found out where to send the request to disable the user.
As far as I am aware I have to disable the user instead of deleting it because otherwise information like who posted gets lost.