Re-Activate a suspended User via API

AI-generated summary

A user, Simone_Torrisi, is looking for a way to reactivate a suspended user via API. They successfully suspended a user using the API but couldn’t find documentation on how to reactivate them. After some research, Simone_Torrisi found the necessary code in the API codebase but wondered why it’s not documented. simon suggested using the “reverse engineering” method outlined in How to reverse engineer the Discourse API to figure out the required API call.

I might be wrong, but I didn’t find anything here related to how to reactivate a previously suspended user, using APIs.

I’ve successfully suspended a user because the subscription to a service they purchased is ended.

But since they are able to return and restore their previous user, is there a way to reactivate them without creating a brand new account, using APIs and not just manually?

Thanks everybody

I’ve actually found this in the api codebase.

Why it is not documented?

If you ever have trouble trying to figure out what API call to make to perform a specific action, give the method that is outlined here a try: How to reverse engineer the Discourse API.