Input diagramData includes a diagram id
Updated TODO