REST API: How to get folder name by item ID?
Hi all
I have the item ID of a folder. Now I want to use the REST API to get the name of this folder. How can I do that using the REST API?
I tried to do it as I do it with files (just using another service):
But now I get the error:
I don't know why because I thought I passed the stateId as a parameter? Any hints?
I have the item ID of a folder. Now I want to use the REST API to get the name of this folder. How can I do that using the REST API?
I tried to do it as I do it with files (just using another service):
https://myserver:9443/ccm/resource/itemOid/com.ibm.team.scm.Folder/_ast94D3IEeG63bqAxzvN7Q?stateId=bV76Bz3IEeGvatauyCs4DA
But now I get the error:
See the following exception message: State ID not be null: com.ibm.team.scm.common.internal.impl.FolderHandleImpl@4c5c4c5c (stateId: null, itemId: [UUID _ast94D3IEeG63bqAxzvN7Q], origin: <unset>, immutable: <unset>)"
I don't know why because I thought I passed the stateId as a parameter? Any hints?