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

Getting 302 Response Code while doing a Httppost in RRC(Software version CLM 6.0) in order to upload an artifact.

 
I am trying to do a HttpPost in RRC (Software version CLM 6.0) in order to upload an artifact using the below query 
but i am getting the response code as 302-Found: 

https://localhost:9443/rm/folders/_28xhUUrsEeW4COkzyIwAGA?postWrappedResource&artifactType=https%3A%2F%2Flocalhost:9443%2Frm%2Ftypes%2F_GLwh0Tp3EeWh5PGTptPpYQ&title=1.docx&description=&private=true&resourceContext=https%3A%2F%2Flocalhost:9443%2Frm%2Fprocess%2Fproject-areas%2F_E87XMjp3EeWh5PGTptPpYQ&vvc.configuration=https%3A%2F%2Flocalhost:9443%2Frm%2Fcm%2Fstream%2F_FH87cDp3EeWh5PGTptPpYQ

The expected Response code is 201

Can anyone help me with this?

0 votes



One answer

Permanent link
It does not seem that you are using it correctly.

If you're trying to create a requirement artifact using a POST operation with the RM OSLC API, the URL that you used is definitely wrong. Check out the below article and follow the instructions.
https://jazz.net/library/article/1197

If you're trying to "upload" a Word document (1.docx ?) and extract the rerquirements, that will be an "import" operation, not "create". I don't think you can achieve this via OSLC using any of the published API.

If you're trying to "upload" a Word document as an attachment, again, I am not aware of any published API that can achieve this.

0 votes

Comments

 Hi Donald,

Thanks for your response. 
I don't want to create a new artifact . I am trying to upload an artifact i.e.,1.docx which is present locally in some folder on my system to a folder in RRC, I was able to do it using the query that I mentioned above in CLM 5.0 but after the change in the CLM version to 6.0 it is somehow not working.

I don't know how you can do it with CLM 5.0 as this is not a published API. Internal APIs (not published) can change significantly between versions.

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

Question asked: Aug 28 '15, 8:28 a.m.

Question was seen: 2,097 times

Last updated: Aug 31 '15, 6:02 a.m.

Confirmation Cancel Confirm