Delete users via API

I try to delete a user on my instance hosted by discourse with the following comand:

curl -X DELETE "https://forum.atelier-medias.org/admin/users/SergeGainsbourg.json?api_key=xxxxxx&api_username=system"

I have the following error:

{
  "errors": [
    "You are not permitted to view the requested resource."
  ],
  "error_type": "invalid_access"
}

I don’t know how to access the production log on hosted instance.

Any idea what is going wrong?

use userid.json here.

5 Likes

Thanks it works now!

2 Likes