def METHOD_NAME():
    logger.debug(request)
    schain_name = request.json.get('schain_name')
    snapshot_from = request.json.get('snapshot_from', '')
    result = toggle_schain_repair_mode(
        schain_name, snapshot_from=snapshot_from)
    if result:
        return construct_ok_response()
    else:
        return construct_err_response(
            msg=f'No schain with name {schain_name}'
        )