mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-14 23:47:04 +03:00
30
API-Docs.md
30
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.
|
||||
|
||||
Reference in New Issue
Block a user