def METHOD_NAME(request: Request, invoke_id: str) -> Response:
    logs = request.json
    if isinstance(logs, Dict):
        logs["request_id"] = invoke_id
        METHOD_NAME = InvocationLogs(**logs)
        self.service_endpoint.METHOD_NAME(
            invoke_id=invoke_id, METHOD_NAME=METHOD_NAME
        )
    else:
        LOG.error("Invalid logs from RAPID! Logs: %s", logs)
        # TODO handle error in some way?
    return Response(status=HTTPStatus.ACCEPTED)