Need help on CLM 5.x to create LPA project using REST API
Hi,
We are trying to create Lifecycle Project through REST API in Java(https://jazz.net/wiki/bin/view/Main/LPAAPIExampleClient#The_example_code_output) and in Perl.
The Java code is still not giving desired output and to test in Perl we need an example of a POST request for Project Creation API.
We are following a link : https://jazz.net/wiki/bin/view/Main/DraftLPARestAPI
This link has a GET API for projects but not a POST API request for Lifecycle Project Creation.
Quick help would be appreciated as we are stuck on this since long.
Thanks.
Regards,
Peter
We are trying to create Lifecycle Project through REST API in Java(https://jazz.net/wiki/bin/view/Main/LPAAPIExampleClient#The_example_code_output) and in Perl.
The Java code is still not giving desired output and to test in Perl we need an example of a POST request for Project Creation API.
We are following a link : https://jazz.net/wiki/bin/view/Main/DraftLPARestAPI
This link has a GET API for projects but not a POST API request for Lifecycle Project Creation.
Quick help would be appreciated as we are stuck on this since long.
Thanks.
Regards,
Peter
3 answers
You're supposed to POST to the template URL to create a new LPA project, not POST to the project URL.
POST (template URL)
Instantiate a lifecycle project template, which typically results in the creation of a lifecycle project and the creation and/or linking of project areas in the lifecycle applications that are encapsulated by the lifecycle project.
With CLM 5.0.2, I can create a new lifecycle project by posting to https://clm:9443/jts/lifecycle-project/projects. But that's all it ends - I haven't been able to find a way to modify (using PUT) the newly created project - the location URL returned with the HTTP 201 code does not even give the details of the project. So hopefully you can put all the information in the payload and create a complete project on one go.
Caveat: I can see the new project in Web GUI, but not in any REST API responses.
Caveat: I can see the new project in Web GUI, but not in any REST API responses.