It's all about the answers!

Ask a question

How to get Slug ID after POST request in RQM URLutility?

Jitesh Saha (179) | asked Jun 07 '20, 6:12 a.m.

I am trying to do a POST request using the RQM Url utility to copy a test artifact from one server to another.This works fine. But I need the test artifact ID or Slug ID in destination project area in return to identify the test artifact later on for linking it to other artifacts. (e.g. linking test cases to Test suites to Test cases)

I know the custom header "Content-Location" can be used to get the slug ID of the artifact in the destination project area after the POST request. But how do I achieve this in URL utility.

Can I add custom headers in the url utility? If no then how do I achieve this?

Accepted answer

permanent link
Subhajit Bhuiya (6222) | answered Jun 08 '20, 2:12 p.m.

 You can do a PUT request and append the id at the end of the resourceurl (provide unique resource id instead of server creating one for it). Then you can use that id to do GET.

Jitesh Saha selected this answer as the correct answer

Jitesh Saha commented Jun 09 '20, 3:23 a.m.
Thank you so much Subhajit. Your solution worked.
Instead of POST operation if I do a PUT operation with adding custom slug ID it works perfectly.

Your answer

Register or 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.