Add warnUser

Ajay Ramachandran
2020-12-29 00:22:50 -05:00
parent f2e9e5820b
commit 0338e3306a

@@ -415,6 +415,31 @@ Shadow banned submissions are hidden for everyone but the IP that originally sub
400: Bad Request (Your inputs are wrong/impossible)
403: Unauthorized (You are not a VIP)
__________________________________________________________________
**POST** `/api/warnUser`
Temporary ban that shows a warning asking them to contact us.
**Input** (Request Body):
```
{
issuerUserID: string, // your userID
userID: string, // public userID you are warning
enabled: boolean //optional, default true
}
```
**Response**:
```
{
Nothing (status code 200)
}
```
**Error codes**:
403: Unauthorized (You are not a VIP)
__________________________________________________________________