def METHOD_NAME(
    self,
    instance: CourseLiveConfiguration,
    lti_config: dict,
) -> CourseLiveConfiguration:
    """
    Update LtiConfiguration
    """
    lti_serializer = LtiSerializer(
        instance.lti_configuration or None,
        data=lti_config,
        partial=True,
        context={
            'pii_sharing_allowed': self.context.get('pii_sharing_allowed', False),
            'provider': self.context.get('provider'),
        }
    )
    if lti_serializer.is_valid(raise_exception=True):
        lti_serializer.save()
    instance.lti_configuration = lti_serializer.instance
    return instance