It's all about the answers!

Ask a question

[closed] RTC - Creating Team Area using Rest API - HTTP Status 405

Rogério Moreira (738) | asked Jul 24 '14, 10:09 a.m.
closed Jun 13 '23, 4:33 a.m. by David Honey (1.8k17)

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 (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

X-Jazz-CSRF-Prevent = DCB8645624FF90C9CB4A84182FFAC3E5
Content-Type = application/xml
<?xml version="1.0" encoding="UTF-8"?>
<jp06:team-area xmlns:jp06="" jp06:name="teamarearest">
   <jp06:summary>Team Area Created via Rest</jp06:summary>
   <jp06:description>team area</jp06:description>

Chris Clark commented Jun 12 '23, 6:35 p.m. | edited Jun 13 '23, 4:31 a.m.

 Did you ever resolve this issue?

David Honey commented Jun 13 '23, 4:33 a.m.

Chris, please do not post follow on questions as answers to someone else's question, especially one that was 9 years ago. If you want to reask the question, or a follow up question, please post your own question. Thanks.

The question has been closed for the following reason: "Problem is not reproducible or outdated" by davidhoney Jun 13 '23, 4:33 a.m.

Accepted answer

permanent link
Ralph Schoon (63.3k33646) | answered Jun 13 '23, 4:43 a.m.
edited Jun 13 '23, 5:02 a.m.

 This works as advertized. The question is very old.

Please read and very carefully.

To create a project area,
  1. Get the rootservices document
  2. Authenticate
  3. Get the projectAreas service URL e.g.
  4. POST to this URL, provide headers X-Jazz-CSRF-Prevent with he JSESSIONID cookie as value and Content-Type with value application/xml;charset=UTF-8
Body, for example


The issue with the question is to post to an existing project areas team areas service and not to the projectAreas service.

Ralph Schoon selected this answer as the correct answer