PHP API example update