patch https://v1.fastpix.io/on-demand//chapters
This endpoint enables you to generate chapters for an existing media file.
How it works
- Make a PATCH request to the /on-demand/{mediaId}/chapters endpoint, replacing
<mediaId>
with the ID of the media for which you want to generate chapters. - Include the
chapters
parameter in the request body to enable. - The response will contain the updated media data, confirming the changes made.
You can utilize the video.mediaAI.chapters.ready webhook event to track and notify about the chapters generation.
Use case: This is particularly useful when a user uploads a video and later decides to enable chapters without re-uploading the entire video.