patch https://v1.fastpix.io/on-demand//moderation
This endpoint enables moderation features, such as NSFW and profanity filtering, to detect inappropriate content in existing media
How it works
- Make a PATCH request to the /on-demand/{mediaId}/moderation endpoint, replacing
<mediaId>
with the ID of the media you want to update. - Include the
moderation
object and provide the requriedtype
parameter in the request body to specify the media type (e.g., video/audio/av). - The response will contain the updated media data, confirming the changes made.
You can utilize the video.mediaAI.moderation.ready webhook event to track and notify about the detected moderation results.
Use case: This is particularly useful when a user uploads a video and later decides to enable moderation detection without the need to re-upload it.