API paths using NoSQL DB

The project DB is Cosmos which to uniquely identify a resource needs both an Id and a PartitionKey. The usual resource/id is not enough and it has been considered to do resource/id/partitionKey. The problem is that partitionKey is somehow related to the hierarchy. So for example, a person has his Id and a parentId as partitionKey so this would be the path to get a person:


Is this the best approach, or what other do you recommend?