cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Translate the entire conversation x

Retrieve a tracker of a given baseline via Restful API?

RR_12247123
4-Participant

Retrieve a tracker of a given baseline via Restful API?

Hi,

 

As shown in CodeBeamer documents, baselines can be created for a project or a tracker. 

 

When we retrieve a tracker using Restful API, can we specify a baseline then? The document for Restful API shows nothing related to baseline. Did I miss something here please?

 

Thanks,

2 REPLIES 2

From the Swagger ( `/v3/swagger/editor.spr` on a Codebeamer instance) there is an option for specifying baselines on a specific tracker item but not as part of the item search.

 

`/v3/trackers/{trackerId}/items` will return all the items for a tracker but does not appear to have a way to specify a baseline to be looking at.

`/v3/trackers/{trackerId}/baselines` will return the baselines that involve the tracker you are looking at.

`/v3/items/{itemId}` has a query parameter for baselineId documented which will return a 404 status if the item does not exist on that baseline or the details of the item if it does.

 

Example URL for the GET call would be:

/api/v3/items/6669?baselineId=39338

With "6669" being the item ID. 

Hi @RR_12247123,

 

I wanted to see if you got the help you needed.

If so, please mark the appropriate reply as the Accepted Solution. It will help other members who may have the same question.
Of course, if you have more to share on your issue, please pursue the conversation. 

 

Thanks,
Anurag 

Announcements


Top Tags