How can I create via API in DNG a delivery session?
Accepted answer
This is the API landing page for all applications: https://jazz.net/wiki/bin/view/Deployment/CLMProductAPILanding
8 other answers
Dear Ralph,
Comments
Hi Antje,
Dependent on your environment, please also see https://jazz.net/forum/questions/98072/x-jazz-csrf-prevent-header-is-required-to-create-a-work-item-via-oslc-on-version-4001/98073
Dear Ralph,
I can now create and deliver a new delivery session. This works, if the original change set is on the stream created, on which it has to be delivered. My request looks like this:
I think I have got one more information: I can create a new delivery session on a different stream (use for the target the streamUri of the different stream). But only if the change set was not delivered before on the origin stream. But on the UI I can deliver the change set more than one time and to different streams.
Comments
You can look here: com.ibm.rm.typemanagement/src/main/java/com/ibm/requirement/typemanagement/oslc/client/resources/Changeset.java
private String title;
You pass the target configuration when you create the change set:
POST https://nowhere.nix/
###
###
See https://jazz.net/library/article/92596 how to get the code.
The task tracker API is documented with the DNG server APIs
Comments
I changed my request like (see answer). But it is always the same: I got nothing back: no tast tracker, no changeSetURI. The Answer is 200 OK, but not 201 Created. See my request in the your answer
I can not remote debug your API calls. Consider using Firefox RESTClient extension to test your calls. Please note that the Task Tracker is sent in the LOCATION header. You will not get back a response body.
This is how to get the task tracker URI: case 202:
return trackerURI;
Status code in my case was 202. You comment above fails to provide anything useful e.g. what you got back with the 200. It could be an HTML page that tells you you are not logged in or something.
POST [URI]
Comments
see new question for creating change sets: How can I create in DNG via API a new change set? - Jazz Forum