IIRC the airlines don't require APIS data until (at the latest) check-in. If your friend can hold-off checking in until s/he has the new passport ...
Changing passport information, once submitted, is likely to be complicated. Meaning that this situation is likely to occur so rarely they are not set up to deal with it.