首页 > 解决方案 > OpenText Content Server how to get folder ID with path using REST API?

问题描述

I'm trying to get the folder ID that I want to create a file at.

I have this folder's path (eg: root/folder1/folder2/folder3), so in this case, I wanted to get folder's 3 ID in order to make a POST call to create the new file.

My solution right now is just to go folder by folder, getting the child ID, but since it can be many folders I was trying to get a faster way.

标签: opentext

解决方案


如果您的“folder3”文件夹有昵称,您可以尝试使用api/v2/nicknames/{your_nickname}/nodes端点

也可以使用 rest api 设置昵称


推荐阅读