From a1d91d74081bf852764a7d30e5143a3a1d67bd8d Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Thu, 3 Jun 2021 17:47:35 -0400 Subject: [PATCH] by @MRuy https://github.com/ajayyy/SponsorBlockServer/issues/167#issuecomment-854195435 --- API-Docs.md | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) 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.