Archive project area via REST Api
I am trying to develop and integration between our project portfolio management tool and IBM CLM.
What I do is to read closed projects on PPM and Arhive them from CLM application.
I have found some info on https://jazz.net/wiki/bin/view/Main/DraftTeamProcessRestApi but wasn't successfull on archiving projects.
I use Mozilla POSTER plugin. I POST and PUT to his URL : https://server:9443/qm/process/project-areas/_BZPQQaVAEeOZWd5JZj9JgQ
The content is
<?xml version="1.0" encoding="UTF-8"?><jp06:project-area xmlns:jp06="http://jazz.net/xmlns/prod/jazz/process/0.6/" jp06:name="Zam31.59753463661717(Quality Management)">
<jp06:summary>Zam31.59753463661717(Quality Management)</jp06:summary>
<jp06:modified>Thu, 06 Mar 2014 15:00:33 GMT</jp06:modified>
<jp06:archived>true</jp06:archived>
</jp06:project-area>
But what I get is HTTP 403 on POST and HTTP 405 Method Not Allowed on PUT.
Has anyone tried to do such operations?
What I do is to read closed projects on PPM and Arhive them from CLM application.
I have found some info on https://jazz.net/wiki/bin/view/Main/DraftTeamProcessRestApi but wasn't successfull on archiving projects.
I use Mozilla POSTER plugin. I POST and PUT to his URL : https://server:9443/qm/process/project-areas/_BZPQQaVAEeOZWd5JZj9JgQ
The content is
<?xml version="1.0" encoding="UTF-8"?><jp06:project-area xmlns:jp06="http://jazz.net/xmlns/prod/jazz/process/0.6/" jp06:name="Zam31.59753463661717(Quality Management)">
<jp06:summary>Zam31.59753463661717(Quality Management)</jp06:summary>
<jp06:modified>Thu, 06 Mar 2014 15:00:33 GMT</jp06:modified>
<jp06:archived>true</jp06:archived>
</jp06:project-area>
But what I get is HTTP 403 on POST and HTTP 405 Method Not Allowed on PUT.
Has anyone tried to do such operations?
Accepted answer
You need to use the HTTP DELETE method. Note, the HTTP response codes (https://jazz.net/wiki/bin/view/Main/DraftTeamProcessRestApi#DELETE_project_area).
2 other answers
When you delete a project area using the RQM Reportable REST API, you are deleting the RQM project area, which is a member of the lifecycle project area.