How to change the primary text and the attribute value of an artifact created in module using OSLC? (DNG)
Hi,
I am using OSLC to change primary text of an artifact created in module.
The server response 200 but the primary text is not changed.
What is the correct way to change attribute value of an artifact created in module?
I am using the following request to update artifacts outside modules without problem.
Action: PUT
URL: https://<server>/rm/resources/MB_XXXXXX
If-Match="%220%22&%22%2522_XXXXXXXXXXX%2522%26%2522_XXXXXXXXXXX%2522%22"
Content-Type: application/rdf+xml
Action: PUT
URL: https://<server>/rm/resources/MB_XXXXXX
If-Match="%220%22&%22%2522_XXXXXXXXXXX%2522%26%2522_XXXXXXXXXXX%2522%22"
Content-Type: application/rdf+xml
My problem is that I can't update the artifact in the module.
2 answers
Hi Manitorn
You only need to ask once ;-)
Please refer to e.g. https://jazz.net/library/article/1197 for guidance on using OSLC interfaces. It's often a good idea to start by using a browser-based REST app to manually do the get and put, so that you have all the headers and encoding sorted out, then write the code to replicate this, and by tracing network then confirm that the code is doing what you did manually.
Good luck!
Regards
Ian
Hi,
I am using the following request to update artifacts outside modules without problem.
Action: PUT
URL: https://<server>/rm/resources/MB_XXXXXX
If-Match="%220%22&%22%2522_XXXXXXXXXXX%2522%26%2522_XXXXXXXXXXX%2522%22"
Content-Type: application/rdf+xml
My problem is that I can't update the artifact in the module.
Comments
You should really edit this detail into your question. Have you confirmed that permissions/workflow state/team ownership allow your user to make this change? Are you updating/checking the artifact in the same configuration? Is your server on the latest ifix? Does the same update work using a REST client?