Ajay Ramachandran
2021-06-03 17:47:35 -04:00
parent 360c1e0bc3
commit a1d91d7408

@@ -418,7 +418,7 @@ These can only be called by the users added to the VIP table.
__________________________________________________________________
##### **POST** `/api/noSegments`
##### **POST** `/api/lockCategories` (`/api/noSegments` deprecated)
Will block new segment submissions of the specified category on that video.
@@ -446,6 +446,34 @@ Will block new segment submissions of the specified category on that video.
__________________________________________________________________
##### **DELETE** `/api/lockCategories` (`/api/noSegments` deprecated)
Will block new segment submissions of the specified category on that video.
**Input** (Request Body):
```js
{
videoID: string,
userID: string,
categories: string[]
}
```
**Response**:
```js
{
message: "Removed lock categories entrys for video {videoID}"
}
```
**Error codes**:
400: Bad Request (Your inputs are wrong/impossible)
403: Unauthorized (You are not a VIP)
__________________________________________________________________
##### **POST** `/api/shadowBanUser`
Shadow banned submissions are hidden for everyone but the IP that originally submitted it. Shadow banning a user shadow bans all future submissions.