Programmatically create a node with alias and menu item using Entity API
I would suggest that you use the node_save() and have a $node-&gt;path set to create the desired path alias, rather than using $entity-&gt;save() because if inspect (via dpm()) the output of an entity_load() of a node, you would see nothing there related to the node's path alias.

Of course you could use $entity-&gt;save() > then fetch the node/entity id > and then use [path_save()][1] too.