API - Assign Files

Hi

Is there a way to assign files to displaygroups automaticly with the API?

There is in the 1.8 API, unfortunately not in the 1.7 one