update add post api