You will need to supply more information for that function, definitely the channel UUID or channel name and possibly the title (though I can't see in the code where that would be needed).
Alternatively use api/dvr/entry/create_by_event, specifying the config_uuid (recording configuration) and event_id.