update square api