-
When I want to link a note to current note use ETAPI, Firstly I think /branches/{branchId} get function in ETAPI, but I disappointed find it return nothing useful information. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The complication of note cloning is that each branch can be part of several note paths. An example of a branch:
However, that parentNoteId can also have multiple branches with "Countries" as the child, e.g. "Europe" and "Holiday wishlist". So, there can be many different note paths leading to the same note or even same branch. If you don't use cloning much, just use noteId as "note path" - trilium will resolve it to a full note path. Or you can use any "right suffix" - e.g. you can use parentNoteId/noteId and trilium will again resolve the rest. Or is there a reason why you need a full note path? |
Beta Was this translation helpful? Give feedback.
The complication of note cloning is that each branch can be part of several note paths.
An example of a branch:
However, that parentNoteId can also have multiple branches with "Countries" as the child, e.g. "Europe" and "Holiday wishlist". So, there can be many different note paths leading to the same note or even same branch.
If you don't use cloning much, just use noteId as "note path" - trilium will resolve it to a full note path. Or you can use any "right suffix" - e.g. you can use parentNoteId/noteId and trilium will again resolve the rest.
Or is there a reason why you need a full note path?