def METHOD_NAME(form, request_form):
    """Modify an Action."""
    messages = {
        "success": [],
        "info": [],
        "warning": [],
        "error": []
    }
    mod_action = Actions.query.filter(
        Actions.unique_id == form.action_id.data).first()
    if not METHOD_NAME:
        messages["error"].append("Action not found")
    else:
        # Parse custom options for action
        dict_actions = parse_action_information()
        if mod_action.action_type in dict_actions:
            messages["error"], custom_options = custom_options_return_json(
                messages["error"], dict_actions, request_form, mod_dev=mod_action, device=mod_action.action_type)
            mod_action.custom_options = custom_options
    if not messages["error"]:
        try:
            db.session.commit()
            messages["success"].append(f"{TRANSLATIONS['modify']['title']} {TRANSLATIONS['actions']['title']}")
        except sqlalchemy.exc.OperationalError as except_msg:
            messages["error"].append(str(except_msg))
        except sqlalchemy.exc.IntegrityError as except_msg:
            messages["error"].append(str(except_msg))
        except Exception as except_msg:
            messages["error"].append(str(except_msg))
    return messages