Skip to main content
POST
/
agent
/
{agent_id}
/
triggers
/
remove_youtube_channels
Remove YouTube Channels
curl --request POST \
  --url https://api.example.com/agent/{agent_id}/triggers/remove_youtube_channels
Subtractively removes only the listed channels from the trigger, leaving all other monitored channels intact. Behavior:
  • Removes specified channels from the trigger
  • If all channels are removed, the trigger itself is deleted
  • Does not affect channels that are not specified

Request

curl -X POST "https://api.mosaic.so/agent/[agent_id]/triggers/remove_youtube_channels" \
  -H "Authorization: Bearer mk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "youtube_channels": ["UCxxxxxxxxxxxxxx"]
  }'

Parameters

FieldTypeRequiredDescription
youtube_channelsstring[]YesYouTube channel IDs or URLs to stop monitoring.