It's all about the answers!

Ask a question

Can a RTC stream be created and configured using the REST API.


Melvin Webb (1111) | asked Jun 13 '16, 9:21 a.m.
edited Jun 17 '16, 12:57 p.m. by David Lafreniere (4.8k7)
I am looking for a method to automate the creation and configuration of RTC software release streams.  Can RTC streams be created and configured via the REST API?  If not, then can it be done via the JAVA toolkit?

Accepted answer


permanent link
David Lafreniere (4.8k7) | answered Jun 17 '16, 1:03 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
edited Jun 17 '16, 1:04 p.m.
Streams cannot be created/configured via the REST API.

You can use the plain JAVA API however to do this using this code:

	IProgressMonitor monitor = (get this from whatever background job framework you use);
	ITeamRepository repo = (the repo you want to create the stream on);
	IWorkspaceManager wm = SCMPlatform.getWorkspaceManager(repo);
	IProcessAreaHandle owner = (a handle to the Project Area or Team Area);
	String streamName = "My Stream Name";
	String streamDescription = "My stream description.";
IWorkspaceConnection stream = wm.createStream(owner, streamName, streamDescription, monitor);
Michael Valenta selected this answer as the correct answer

Your answer


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.