Currently there is a possibility to link defect to test run result only manually not via API. Would be nice to have the same functionality via API.