def METHOD_NAME(self, id):
    i = get_object_or_404(self.objectmanager, id=id)
    data = loads(request.data)
    nodes = []
    response = {"status": "ok", "message": ""}
    try:
        for node in data["nodes"]:
            if node["type"] in globals() and issubclass(
                globals()[node["type"]], Observable
            ):
                _type = globals()[node["type"]]
                try:
                    n = _type.get_or_create(value=node["value"])
                except ObservableValidationError as e:
                    logging.error((node, e))
                    continue
                if node["new_tags"]:
                    n.tag(node["new_tags"].split(", "))
                nodes.append(n)
        i.add([], nodes)
    except Exception as e:
        response = {"status": "error", "message": str(e)}
    return render(response)