From 12cacf68cb8d4138d42d650dc3a284d5f448a065 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Thu, 24 Jun 2021 02:25:55 -0400 Subject: [PATCH] Changes by blabdude - Add purge all segments --- API-Docs.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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.