use bamboo rest api