How to update a stream using client API
![](http://jazz.net/_images/myphoto/73be64fa034374776cb4e95b844ba3e2.jpg)
I have an IWorkspaceHandle and IWorkspace for a stream object. I want to update one of the properties via IWorkspace.getProperties().put(key, value) but I cannot figure out the correct Save operation. I see a IScmService.setWorkspaceProperty(handle, key, value) but as best I can tell that is a server-side API.
How do I update and save the stream using client API?
My code so far is
ITeamRepository repo = ....
IWorkspaceManager wm = SCMPlatform.getWorkspaceManager(repo);
IWorkspaceSearchCriteria wsCriteria = WorkspaceSearchCriteria.FACTORY.newInstance();
wsCriteria.setKind(IWorkspaceSearchCriteria.STREAMS);
wsCriteria.getFilterByOwnerOptional().addAll(java.util.Collections.singleton(projectArea));
wsCriteria.getFilterByOwnerOptional().addAll( projectArea .getTeamAreas());
List <IWorkspaceHandle> streamHandles = wm.findWorkspaces(wsCriteria, Integer.MAX_VALUE, new SysoutProgressMonitor());