How to copy artifacts (i.e., with same identifier) from one module to another through RM API
One answer
I think what you want to do is reuse existing artifacts in another module - it's the same base artifact bound into the module structure - a binding has the attribute values of the base artifact, so has the same ID, but can have module-specific links to/from the binding.
You can get and modify module structure using the DN Module API https://jazz.net/wiki/bin/view/Main/DNGModuleAPI
Be careful about headers - you'll need OSLC-Core-Version: 2.0 for the OSLC APIs, but don't provide this header wen accessing the module API. Do provide DoorsRP-Request-Type: public 2.0 (capitalised exactly like that) when accessing the Module API.
See here for the entry point of all ELM APIs https://jazz.net/wiki/bin/view/Deployment/ELMProductAPILanding
Comments
Thank you for your response.
Could you please elaborate on your answer by providing some examples of how to form the URL? I have prior experience working with RM APIs only, so examples would be greatly appreciated and helpful for me.
In general you won't 'form' the URL, you'll use e.g. OSLC Query to find the module URL, do a GET (using the Module API) to retrieve the structure URL, do a GET (using the Module API) on that to retrieve the module structure. You'll use discovery to find configuration URLs, etc. If you find yourself adding a string to a URL you're probably doing something wrong and your code will be fragile as versions of ELM evolve perhaps changing how URLs are structured.