mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-14 23:47:04 +03:00
Changes by blabdude - Add purge all segments
26
API-Docs.md
26
API-Docs.md
@@ -599,6 +599,32 @@ Clear redis cache for video.
|
||||
|
||||
__________________________________________________________________
|
||||
|
||||
##### **POST** `/api/purgeAllSegments`
|
||||
|
||||
Hide all segments on a video
|
||||
|
||||
**Input** (Request Body):
|
||||
```js
|
||||
{
|
||||
userID: string, // your userID
|
||||
videoID: string // video ID to hide segments of
|
||||
}
|
||||
```
|
||||
|
||||
**Response**:
|
||||
```js
|
||||
{
|
||||
Nothing (status code 200)
|
||||
}
|
||||
```
|
||||
|
||||
**Error codes**:
|
||||
|
||||
400: Bad Request (Your inputs are wrong/impossible)
|
||||
|
||||
403: Unauthorized (You are not a VIP)
|
||||
__________________________________________________________________
|
||||
|
||||
### Admin Calls
|
||||
|
||||
These can only be called by the server administrator, set in the config.
|
||||
|
||||
Reference in New Issue
Block a user