POST generation of SQL insert format returns error?

When using a POST to the generate endpoint (eg: specifying the SQL type results in an error:
{“error”:“undefined method `table_name’ for nil:NilClass”}

The same call to generate.json or generate.csv etc works as expected.

Passing table_name as an additional query param does not help.

Has anyone been able to correctly use the POST endpoint to generate SQL inserts?