It's all about the answers!

Ask a question

RTC - Creating Team Area using Rest API - HTTP Status 405


Rogério Moreira (718) | asked Jul 24 '14, 10:09 a.m.
edited Jul 24 '14, 10:10 a.m.
Hello!

I'm trying to create a Team Area using the REST API, according to DraftTeamProcessRestApi I should do a POST to "team-areas-url from a the Project Area Resource".

ex: https://jazzserver:9443/ccm/process/project-areas/_3fe54BJ5EeShucXs-2PcWw/team-areas

But I'm having a "HTTP 405 Method Not Allowed - The specified HTTP method is not allowed for the requested resource"

Maybe I misinterpreted or forgot something, but I really don't know why I'm having this error. I already tried multiple headers and values, but always same result. I even checked https://jazz.net/library/article/1086 (REST API creating a Project Area using perl) but I can't find the problem :(

Can someone help me with this? Thanks :)

Using: RTC 4.0.6, Firefox-RESTClient


Headers: 
X-Jazz-CSRF-Prevent = DCB8645624FF90C9CB4A84182FFAC3E5
Content-Type = application/xml
Content:
<?xml version="1.0" encoding="UTF-8"?>
<jp06:team-area xmlns:jp06="http://jazz.net/xmlns/prod/jazz/process/0.6/" jp06:name="teamarearest">
   <jp06:summary>Team Area Created via Rest</jp06:summary>
   <jp06:description>team area</jp06:description>
   <jp06:parent-url>https://jazzserver:9443/ccm/process/project-areas/_3fe54BJ5EeShucXs-2PcWw</jp06:parent-url> 
   <jp06:timeline-url>https://jazzserver:9443/ccm/process/project-areas/_3fe54BJ5EeShucXs-2PcWw/timelines/_3uSx9RJ5EeShucXs-2PcWw</jp06:timeline-url>
</jp06:team-area>

Be the first one to answer this question!


Register or to post your answer.