Description
Delete an existing user.
Parameters
Code Block |
---|
username |
Request
Code Block | ||
---|---|---|
| ||
curl -X POST \ -H "Authorization: Token d37fa8c4e008fec158070b1b4aea5f0db3d6a06e" \ -H "Content-Type: application/json" \ -d '{"username":"testuser"}' \ -k https://your.domain.com/api/users/delete_user |
Responses
Code Block | ||
---|---|---|
| ||
{"status": "success"} {"status": "failed", "msg": "User matching query does not exist."} |
...