basic php API update