def METHOD_NAME(url, state):
    """Set the master enable config to the state"""
    print('Setting master_enable: {}'.format(state))
    body = {
        "master_enable": state,
        "activation": {
            "mode": "activate_immediate",
            "requested_time": None
        }
    }
    send_request(url, body)