def METHOD_NAME():
    """
    Add a collaboration.
    """
    pytx_collab_config_class = import_class(bottle.request.json["class"])
    attributes = json.loads(bottle.request.json["attributes"])
    mapped_attributes = {}
    for f in fields(pytx_collab_config_class):
        if t.get_origin(f.type) != None:
            if t.get_args(f.type)[0].__name__ == "int":
                # Convert to list of int..
                mapped_attributes[f.name] = [int(x) for x in attributes[f.name]]
        elif issubclass(f.type, Enum):
            found = [e for e in f.type if e.name == attributes[f.name]][0]
            mapped_attributes[f.name] = found.value
        else:
            mapped_attributes[f.name] = attributes[f.name]
    pytx_collab_config: CollaborationConfigBase = dataclass_loads(
        json.dumps(mapped_attributes), pytx_collab_config_class
    )
    bank = banks_table.create_bank(
        f"Import Collab: {pytx_collab_config.name}",
        f"Auto-created bank for importing collaboration: {pytx_collab_config.name} on API: {pytx_collab_config.api}",
    )
    tx_collab_config.create_collab_config(pytx_collab_config, bank.bank_id)
    return {"result": "success"}