added how to delete
parent
d65538626f
commit
6eec092570
@ -23,3 +23,24 @@ curl "http://localhost:8000/api/v2/account/users" \
|
||||
-H "X-API-Key: xmB6rIuSSL9MpZqY678pF" \
|
||||
--data-raw '{"type":0,"roleId":"admin_id","name":"test12231","password":"tesT1233-123","privilege":{"all":false,"sites":["66dcddb804aa0d2978cf145f"]},"alert":false}'
|
||||
```
|
||||
|
||||
|
||||
## Deleting a user
|
||||
Request type DELETE
|
||||
You will need userid for this request
|
||||
In this example the userid is `6764d103fb5a2a7a6b67c753`
|
||||
```bash
|
||||
curl "http://localhost:8000/api/v2/users/6764d103fb5a2a7a6b67c753" \
|
||||
-X 'DELETE' \
|
||||
-H 'content-type: application/json' \
|
||||
--data-raw '{"forceDelete":true}' \
|
||||
-H "X-API-Key: xmB6rIuSSL9MpZqY678pF"
|
||||
```
|
||||
Expected success repose is
|
||||
```json
|
||||
{
|
||||
"errorCode": 0,
|
||||
"msg": "Success."
|
||||
}
|
||||
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user