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