title: Create a new iteration using TFS REST API
body: <p>I think there is a problem with the new <a href="https://www.visualstudio.com/docs/integrate/api/overview" rel="nofollow" title="TFS REST API">TFS REST API</a>. Let me explain :</p>
  
  <p>Here is an example of a <strong>classification node</strong>, which is basically an  "inactive" iteration (not shown with the other sprint in TFS) :</p>
  
  <pre><code>{
    "id": 126391,
    "name": "Web",
    "structureType": "area",
    "hasChildren": false,
    "_links": {
      "self": {
        "href": "https://fabrikam.visualstudio.com/DefaultCollection/6ce954b1-ce1f-45d1-b94d-e6bf2464ba2c/_apis/wit/classificationNodes/Areas/Web"
      },
      "parent": {
        "href": "https://fabrikam.visualstudio.com/DefaultCollection/6ce954b1-ce1f-45d1-b94d-e6bf2464ba2c/_apis/wit/classificationNodes/Areas"
      }
    },
    "url": "https://fabrikam.visualstudio.com/DefaultCollection/6ce954b1-ce1f-45d1-b94d-e6bf2464ba2c/_apis/wit/classificationNodes/Areas/Web"
  }
  </code></pre>
  
  <p>Pay attention to the "id" field. It's not a <strong>TFS GUID</strong>, it's a basic id.</p>
  
  <p>Now, here is what you need to send to the API to append your classification node to a team, which is the way to active your classification node as an <strong>iteration</strong> : </p>
  
  <pre><code>POST https://{instance}/DefaultCollection/{project}/{team}/_apis/work/TeamSettings/Iterations?api-version={version}
  
  "{\"id\":\"a589a806-bf11-4d4f-a031-c19813331553\"}"
  </code></pre>
  
  <p>This is the problem ! You need the <strong>GUID</strong> of your classification node to append it to a team but there is no way to retrieve it...</p>
  
  <p>Can someone explain me how is it possible ?
  Thanks in advance.</p>
  
  <p><strong>EDIT 6/24/2016</strong>
  Here's what I retrieve when I'm asking for all the classification nodes :</p>
  
  <pre><code>https://{...}/_apis/wit/classificationNodes/iterations?$depth=2
  </code></pre>
  
  <p><a href="http://i.stack.imgur.com/HzysA.png" rel="nofollow">Classification nodes tree</a></p>