It's all about the answers!

Ask a question

Query related with DNG API's

Rajat Krishnan (709) | asked Sep 14, 3:36 a.m.
Currently i am working on DNG utility which will send a PUT request to update some the artifact column values
and below are my query
  • If we want to update anything in DNG Module, we need to create a changeset, so does it mean if i try to programmatically update any module artifact data, do i need to first create a DNG Changeset programmatically and then only i can update the artifact data?
  • if Changeset creation is not required then what if i update the artifact in DNG and at the same time some other user is working in same module (under same stream) with open changeset, then will my changes (which i have done using API) will go and sit in his/her changeset changed resources history?
Thank you

One answer

permanent link
Ralph Schoon (62.3k33643) | answered Sep 14, 4:32 a.m.


as a reference, the API landing page:
In addition the DNG Server API e.g. for delivery:

I have worked with the Configuration Management API in the past. See and follow the links to read up on it. Especially: . Please note there is code available.

As a summary

If you want to deliver something, you need to provide the source and the target configuration. If a change set is required, you have to create a changeset and do the changes related to this change set. The API will not pick up an arbitrary configuration.

Note, as discussed in the change set API is public, but unfortunately undocumented. You can trace the code and how it works.

Ralph Schoon commented Sep 14, 4:39 a.m.

Please also note that the error handling support in general e.g. for the  Configuration Management API leaves much to be desired. I do not think you can do much programmatically if the operation fails. Even the error messages are so generic, it does not help much. 

I would suggest to create ideas/enhancement requests if you want more/different API. If there is enough demand, it would be possible to enhance the APIs.

Rajat Krishnan commented Sep 14, 8:09 a.m.
Thanks Ralph for your quick response
I will go through the docs you mentioned if still i don't find a way out i will create a enhancement

David Honey commented Sep 14, 11:59 a.m. | edited Sep 14, 11:59 a.m.

Currently, the OSLC Configuration Management specification does not define any mechanisms for delivering change sets, or findinfg the history of such deliveries (e.g. find all the change sets delivered to a specified stream). The OSLC Open Projects Work Group has recently discussed changes to the OSLC Configuration Management specification address these gaps. I recommend anyone interested in this topic participate in the discussions by joining the OSLC Open Projects group - see and for more information.

Your answer

Register or to post your answer.