It's all about the answers!

Ask a question

Is it possible to change iteration data through REST API?

Erik Jägervall (73710) | asked Jan 30 '12, 4:37 a.m.

We have an RSA extension that uses the Rest API to synchronize with an RTC project area (RTC 3.0) . Getting and updating ordinary work items like defects works as expected. For iterations it possible to do a GET request to get data from an iteration, for example like this:


However, trying to do a PUT request to replace some of the values we get a 405 Method Not Allowed Response. Now we are trying to find out if we just have made any faults in our request, or if it simply is not possible.

Should it be possible to update iteration date like start/end-date through the REST API?

with best regards Erik

3 answers

permanent link
Sean G Wilbur (8722421) | answered Feb 06 '12, 11:39 a.m.
These are currently only in DRAFT form and for internal use only, you can see the reference on the wiki.


permanent link
Qiong Feng Huang (76911610) | answered Feb 07 '12, 5:41 a.m.
We don't support modify (PUT/DELETE/POST) iteration through REST API. We only support GET iteration.

permanent link
Erik Jägervall (73710) | answered Mar 05 '12, 8:39 a.m.

We managed to change the iteration data through the Java API

br Erik

Rachid Halloul commented Aug 04 '12, 9:08 a.m.

can you send me an example?

Erik Jägervall commented Aug 16 '12, 2:09 a.m.

Has been on vacation, but the following lines could give you some clues. It is actually quite straightforward when you have a valid ITeamRepository reference. Then you can fetch the wanted project area and from that timelines and from that iterations, and then you can do whatever you want with them.

br Erik

        processItemService =(IProcessItemService)teamRepository.getClientLibrary(IProcessItemService.class);


private void updateIteration(IIteration iteration, String id, String name, Date startDate, Date endDate) throws RTCException{


     Date date = iteration.getEndDate();

     IIteration iterationCopy =

     IProcessItem[] itemsToSave =
        new IProcessItem[]{iterationCopy};
     IProcessItem[] savedItems =, new NullProgressMonitor()); 
  catch (Exception e){



Erik Jägervall commented Aug 16 '12, 2:10 a.m.

Hmmm, the formatting above became quite lousy, seems that line breaks are ignored :-(

Your answer

Register or to post your answer.