I need to link two new entries via suite CRM API

I used the module builder to create two custom modules (File, Operation). Then i create a relationship between them (one to many,File -> Operation) inside Studio. I use the Suite CRM API (v4.1) to set entry to File module and Operation Module and works. Now I want to link these new entries, but the set_relationship method doesn’t work. Any help?