Convert a quotes to invoice through the endpoint

How can I convert quotes to invoice dynamically through the endpoint

Sorry, I don’t have a v4 sample to provide.

Note: if you upgrade to v5 you can use the app to generate sample API requests.

So it can only be done from the dashboard?![image|690x387]

It may be possible by setting action=convert

Edit: sorry, I don’t think this will work. Reviewing the v4 code it looks like this functionality isn’t exposed through the API.