Skip to navigation

Enable video moderation on a media

This endpoint will be deprecated on September 30, 2026. To enable moderation on an existing media, use Detect NSFW content and profanity instead.

This endpoint enables moderation features, such as NSFW and profanity filtering, to detect inappropriate content in existing media.

How it works

  1. Make a PATCH request to this endpoint, replacing <mediaId> with the ID of the media you want to update.
  2. Include the moderation object and provide the requried type parameter in the request body to specify the media type (for example, video/audio/av).
  3. The response contains the updated media data, confirming the changes made.

You can use 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.

Related guide: Moderate NSFW & Profanity

Authentication

AuthorizationBasic

FastPix APIs are secured with Basic Authentication. Use your Access Token ID as the username and Secret Key as the password in the Authorization header of each API request.

  • Username: Access Token ID
  • Password: Secret Key

Activate your FastPix account to generate your API credentials. See the guide here

Path parameters

mediaIdstringRequiredformat: "uuid"
The unique identifier assigned to the media when created. The value must be a valid UUID.

Request

This endpoint expects an object.
moderationobjectOptional

Response

Media details updated successfully with the named entity extraction feature enabled or disabled
successbooleanOptional
Shows the request status. Returns true for success and false for failure.
dataobjectOptional