> However, what I need is to programmatically insert or change that line > to set or update the property. Is there a built-in function for that or > do I have to search and update that line myself?
I would look at `org-entry-put`. It seems like it does what you need --- it takes an element, marker or buffer position, and sets a property there, creating the property drawer if necessary. Thanks, Rohit Patnaik