update to the API example file