Yes, any action that can be performed through the UI can be performed throuth the API. Have a look at How to reverse engineer the Discourse API for details about how to find the correct route to call.
simon
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| API / anonymize or delete | 8 | 1289 | August 19, 2021 | |
| Can we toggle anonymous mode via API | 1 | 732 | February 10, 2022 | |
| Anonymize user - blank response from API on attempt? | 5 | 942 | January 30, 2018 | |
| Unable to anonymize user via API with SSO enabled | 1 | 701 | June 13, 2022 | |
| API request for anonymizing users | 2 | 676 | November 22, 2019 |