Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Update artifacts using DNG API

 Hi Team,


I have a module which has number of artifacts created in it. I have a python program which should read the artifacts and add some conditions to it and upload it back to DNG RM. I'll read the artifacts using this API. https://<server>/rm/publish/resources?viewURI=<view_URI>&projectURI=<projectURI>&moduleUri=<moduleURI>

Similarly, I want to update number of artifacts through APIs. It could be updating one Artifact/list of artifacts/save all the artifacts as a file and import the artifacts from it.

Could you please help me on this.

0 votes


Accepted answer

Permanent link

 Here is a list of the available APIs: https://jazz.net/wiki/bin/view/Deployment/CLMProductAPILanding


The API you mention above is the reportable REST API for DNG, which is read only. There is no Update or create operation available. The OSLC API allows to CRUD artefacts. 

sri K selected this answer as the correct answer

0 votes

Comments

 Hi Ralph, Thanks for your information.


Is there any specific example which I could refer for this problem?  

The link I provided mentions an OSLC workshop. At least read that. 


This is the entry point for a number of blog posts that explain EWM APIs. All the OSLC related content applies to DNG as well. 

Thanks Ralph. 

Hi Ralph, 


I have found a way to update artifacts individually using OSLC API. Thanks for the information.

But in my case, I might be updating nearly 300 artifacts in one single run. So, I have to do nearly 600 API requests.
So, I am trying to find Is there any way to update artifacts by importing a CSV file through an API in one shot?

I don't find any information about this question. Could you please help me on this?

OSLC does not know any bulk update I am aware of. If you must update 300 items, you have to GET each item and then PUT each modified item (mind the ETag). This is how the API is designed.  

 Sure, Thanks again. 


Is there any API rate limiting? in DOORs. If yes, Is it possible to change it?

Not that I am aware of. 

 Thank you.

showing 5 of 8 show 3 more comments

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,937

Question asked: Jan 23 '23, 2:31 a.m.

Question was seen: 940 times

Last updated: Jan 27 '23, 4:52 a.m.

Confirmation Cancel Confirm