Skip to main content
5-Regular Member
June 24, 2026
Question

REST API to Enable / Disable the project

  • June 24, 2026
  • 1 reply
  • 19 views

Hello! 
We are trying to find a REST API which allows us to Enable/Disable a project (i.e. Lock all the trackers, prevent any changes in members, roles, etc) 

In Java based workflow actions, we are using: 
 

var project = projectDao.findById(admin, project.getId());project.setDisabled(true);projectDao.update(project);

1 reply

BKampling_SAI
14-Alexandrite
June 24, 2026

@AK_14438052 your best best is to get all the trackers from here: https://codebeamer.com/cb/v3/swagger/editor.spr#/Project/getTrackers and then loop through the trackers and lock the tracker configurations with this endpoint by setting the locked field to true: https://codebeamer.com/cb/v3/swagger/editor.spr#/Tracker/postTrackerConfiguration

5-Regular Member
June 24, 2026

Hey ​@BKampling_SAI, thanks but I’m aware of this API. Infact there are better ones in Internal API which allow you to lock / unlock trackers directly without needing to touch entire configuration. 
I’m looking for APIs to lock the entire project to prevent any edits (like Changing roles, memberships, etc)

BKampling_SAI
14-Alexandrite
June 24, 2026

You probably already know this, but keep in mind that the internal api is subject to breaking changes in any upgrade without notification. While there are better internal endpoints, anything tying into them takes that risk onto themselves.

 

If you are trying to lock the entire project, you could just remove the edit permissions from the project roles. Could you provide more context around your use case for needed to lock an entire project?