Creates a new job that edits an existing Mux text track using static replacements and optional profanity censoring. Provide at least one of replacements or auto_censor_profanity.
Arbitrary string stored with the job and returned in responses. Useful for correlating jobs with your own systems.
The Mux asset ID whose existing text track should be edited.
The existing ready Mux text track ID to edit and optionally replace.
Optional LLM-driven profanity detection and censorship rules applied to the selected caption track.
How profanity is detected. Currently only llm is supported, which uses an LLM to identify profanity in cue text.
Replacement strategy for detected profanity: blank inserts bracketed underscores, remove drops the match, and mask replaces characters with question marks. Defaults to "blank".
Additional words or short phrases that should always be censored even if the model does not detect them.
Words or short phrases that should never be censored even if the model flags them.
Optional static word or phrase replacements applied directly to cue text.
Exact word or phrase to replace in cue text.
Replacement text to insert when a match is found.
When true, find is matched only with exact case. Defaults to false (case-insensitive matching), so "gonna" also matches "Gonna" and "GONNA".
Whether to upload the edited VTT back to the Mux asset as a new text track. Defaults to true.
Whether to delete the original source text track after the edited track upload succeeds. Has effect only when upload_to_mux is true. Defaults to true.
Optional suffix appended to the uploaded replacement track name. Defaults to "edited".
{
"parameters": {
"asset_id": "mux_asset_123abc",
"track_id": "text_track_456def",
"replacements": [
{
"find": "Mucks",
"replace": "Mux",
"case_sensitive": true
},
{
"find": "gonna",
"replace": "going to"
}
],
"upload_to_mux": true,
"delete_original_track": true
}
}{
"data": {
"id": "rjob_example123",
"workflow": "edit-captions",
"status": "pending",
"units_consumed": 0,
"created_at": 1700000000,
"updated_at": 1700000060,
"parameters": {
"asset_id": "mux_asset_123abc",
"track_id": "text_track_456def",
"replacements": [
{
"find": "Mucks",
"replace": "Mux",
"case_sensitive": true
},
{
"find": "gonna",
"replace": "going to"
}
],
"upload_to_mux": true,
"delete_original_track": true
}
}
}