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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

is there way Lock /Unlock tracker using API

SJ_7748282
6-Contributor

is there way Lock /Unlock tracker using API

Is there any way Lock /Unlock tracker using API?

3 REPLIES 3
alfonso_c
14-Alexandrite
(To:SJ_7748282)

Hello @SJ_7748282 , you can use the following Swagger API endpoints:

 

  • GET /v3/tracker/{trackerId}/configuration
  • POST /v3/tracker/configuration
  1. Obtain the tracker configuration object with GET /v3/tracker/{trackerId}/configuration
  2. Copy the entire JSON object from the Response body to the clipboard.
  3. Paste the entire JSON object as a Request body for the POST /v3/tracker/configuration endpoint.
  4. Change the following property to its opposite boolean value:

 

"basicInformation": {
...
"locked": true/false,
...
},

 

       5. Execute the Swagger API request.

 

Step 3 is crucial: sending a JSON without specific properties is the equivalent of setting those properties to a null value, which wipes out parts of the tracker configuration. See Article - CS412988 - Codebeamer Swagger API POST /v3/tracker/configuration wipes out existing tracker configuration for detailed information.

 

SJ_7748282
6-Contributor
(To:alfonso_c)

HI @alfonso_c ,

Thank you for your reply and solution i am already using this but for some trackers i am getting response-

{
    "resourceUri""/api/v3/tracker/26627/configuration",
    "message""Unexpected tracker field access control value: 8"
}

 
any idea what it is about?

alfonso_c
14-Alexandrite
(To:SJ_7748282)

Hi @SJ_7748282 , I recommend having this analyzed as a possible Codebeamer unwanted behavior through a new Support ticket. In the ticket, please also include a template export from the affected tracker.

 

What I could find: I checked the code and this seems to refer to some type of "legacy" fields with "Same as" permission. 8 stands for the type of Access Control value. Using trial-error, you could also try to set the permissions of all fields having "Same as" to "Unrestricted" until the problem stops, so to know which field is the culprit:

alfonso_c_0-1729750322475.png

 

 

Announcements



Top Tags