API Docs: Difference between revisions

Jump to navigation Jump to search
236 bytes added ,  1 October 2022
→‎POST /api/skipSegments: add description input fields
(update explanations of the "description" response field)
(→‎POST /api/skipSegments: add description input fields)
Line 137: Line 137:
   videoDuration: float, // Optional, duration of video, will attempt to retrieve from the YouTube API if missing (to be used to determine when a submission is out of date)
   videoDuration: float, // Optional, duration of video, will attempt to retrieve from the YouTube API if missing (to be used to determine when a submission is out of date)
   actionType: string // Optional, default is "skip". [3]
   actionType: string // Optional, default is "skip". [3]
  description: string // Chapter title for chapters, must be an empty string or not present for other segment types
}
}
</syntaxhighlight>
</syntaxhighlight>
Line 157: Line 158:
     category: string, // [1]
     category: string, // [1]
     actionType: string // Optional, defaults to "skip". [3]
     actionType: string // Optional, defaults to "skip". [3]
    description: string // Chapter title for chapters, must be an empty string or not present for other segment types
   }]
   }]
}
}
Line 182: Line 184:
409: Duplicate
409: Duplicate
-----
-----
====='''POST''' <code>/api/voteOnSponsorTime</code>=====
====='''POST''' <code>/api/voteOnSponsorTime</code>=====
Vote on a segment or vote to change the category of the segment.
Vote on a segment or vote to change the category of the segment.

Navigation menu