How to change line connectors text in runtime?

I changed a shape label whit this command,

		function updatetexts(id,texto){
			editor.diagram.data.update(id, { text: texto });
		}

But, how i can change a label of lines connectors lines?

You may try to use the following solution:

diagram.data.getItem("line_id").title.text[0].text = "new text"
diagram.paint()