Set Time Entry billed_status and invoice_id using API

Set Time Entry billed_status and invoice_id using API

Is it possible to set time entry status to billed and add invoice_id via API?