Is it possible to set Estimate/Invoice Status via API?

Is it possible to set Estimate/Invoice Status via API?

Is it possible to set Estimate/Invoice Status via API?

To support an automation, I need to change the status from Sent back to Draft.

THEN: I need Books to set the status to Sent when I re-send the Estimate.