Change invoice status via API

Is it possible to change the invoice status to open or sent via api?

Im sending the invoice via other means so it does not need to be sent directly from freeagent, just need to change the status.

Thanks

PUT https://api.freeagent.com/v2/invoices/:id/transitions/mark_as_sent