Sql post not working?

Entity id does not match the path specified in the dataset.

I can pull a dataset through rest. I want to modify the sql then push it back. Am getting the above error.

Have tried flipped the type to PHYSICAL_DATASET as indicated in the example but no luck.

If I understand correctly you are trying to edit the SQL of a virtual dataset? In that case you should GET the entity, modify the SQL and PUT it back (not POST). POST is used when creating only.

This https://www.dremio.com/tutorials/using-the-rest-api/

says POST file back after pulling but will try PUT.

Maybe they mean something else int he example but it is definitely not clear. The example also has bugs in it.

The REST API docs are usually the best to follow (http://docs.dremio.com/rest-api/catalog/endpoints.html#update-an-existing-catalog-entity), will take a look at updating the tutorial.