now the REST api can handle branch updates