Update posts API