It's all about the answers!

Ask a question

REST API: How to get folder name by item ID?


S M (8622023) | asked Jan 16 '12, 9:52 a.m.
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):

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?

Be the first one to answer this question!


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.