rm publish/unpublish api