update api for longtext