# How to mute all channels in the Action Editor via script

I need to mute all these animation channels via script:

I tried using bpy.ops.anim.channels_setting_enable(type='MUTE') but that fails with an error saying that the context is incorrect.

How can I solve this via script? Thanks!