diff --git a/API-Docs.md b/API-Docs.md index f26681d..44b6a26 100644 --- a/API-Docs.md +++ b/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.