How to use the API to add a label to an arrow ?

I'm using the API to create a diagram to work with my team collaborative, but i can't find the way to put labels in the arrows. It is an available feature ?

Tagged: