Save a script

    Save a script # noqa: E501

    :param driver: The driver to use for the request. ie. github
    :type driver: str
    :param script_save: The data needed to save this script
    :type script_save: dict | bytes

    :rtype: Response

def save_driver_script(driver, script_save=None):  # noqa: E501
    """Save a script

    Save a script # noqa: E501

    :param driver: The driver to use for the request. ie. github
    :type driver: str
    :param script_save: The data needed to save this script
    :type script_save: dict | bytes

    :rtype: Response
    """
    if connexion.request.is_json:
        script_save = ScriptSave.from_dict(connexion.request.get_json())  # noqa: E501

    response = errorIfUnauthorized(role='developer')
    if response:
        return response
    else:
        response = ApitaxResponse()

    driver: Driver = LoadedDrivers.getDriver(driver)
    driver.saveDriverScript(script_save.script.name, script_save.script.content)

    return Response(status=200, body=response.getResponseBody())