mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 01:01:55 +01:00
Changes by blabdude
parent
f16c35fe8a
commit
f419842c6e
1 changed files with 27 additions and 0 deletions
27
API-Docs.md
27
API-Docs.md
|
@ -570,6 +570,33 @@ Temporary ban that shows a warning asking them to contact us.
|
|||
|
||||
__________________________________________________________________
|
||||
|
||||
##### **POST** `/api/clearCache`
|
||||
|
||||
Clear redis cache for video.
|
||||
|
||||
**Input** (Request Body):
|
||||
```js
|
||||
{
|
||||
userID: string, // your userID
|
||||
videoID: string // video ID to clear cache of
|
||||
}
|
||||
```
|
||||
|
||||
**Response**:
|
||||
```js
|
||||
{
|
||||
Cache cleared on video videoID (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.
|
||||
|
|
Loading…
Reference in a new issue