diff --git a/API-Docs.md b/API-Docs.md index af4666a..aa84c84 100644 --- a/API-Docs.md +++ b/API-Docs.md @@ -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.