import connexion
from typing import Dict
from typing import Tuple
from typing import Union

from api_invoker_management.models.api_invoker_enrolment_details import APIInvokerEnrolmentDetails  # noqa: E501
from api_invoker_management.models.api_invoker_enrolment_details_patch import APIInvokerEnrolmentDetailsPatch  # noqa: E501
from api_invoker_management.models.problem_details import ProblemDetails  # noqa: E501
from api_invoker_management import util


def modify_ind_api_invoke_enrolment(onboarding_id, api_invoker_enrolment_details_patch):  # noqa: E501
    """modify_ind_api_invoke_enrolment

    Modify an individual API invoker details. # noqa: E501

    :param onboarding_id: 
    :type onboarding_id: str
    :param api_invoker_enrolment_details_patch: 
    :type api_invoker_enrolment_details_patch: dict | bytes

    :rtype: Union[APIInvokerEnrolmentDetails, Tuple[APIInvokerEnrolmentDetails, int], Tuple[APIInvokerEnrolmentDetails, int, Dict[str, str]]
    """
    if request.is_json:
        api_invoker_enrolment_details_patch = APIInvokerEnrolmentDetailsPatch.from_dict(request.get_json())  # noqa: E501
    return 'do some magic!'
