Added API to allow updating of published state