Change segment name via browser

Is there a way to change the segment name through an HTTP request API in order to change the display text of the matrix?

Api to change seg name /text is {“seg”:[{“id”:0,“n”:"new name "}]}