mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-16 16:37:18 +03:00
Add warnUser
25
API-Docs.md
25
API-Docs.md
@@ -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)
|
||||
|
||||
__________________________________________________________________
|
||||
|
||||
Reference in New Issue
Block a user