notes with attachments api sample update for new api.