Hi,
I was trying to store the purepath session using REST webservice with a custom session name. looks like there is no parameter to specify the custom session name. where as from the client a session can be saved with any name. Is there a way i can specify a name for the session using the REST?
After saving i am trying to export the session to store it outside the DT server. The append time stamp option creates session names with spaces and the REST export is not working for me with these session names with spaces.
Thanks,
Sreerag
Answer by Roman S. ·
Hi,
You are right, that parameter is not part of the store session REST interface. You might want to add a RFE to have this addressed in a future release.
For the export call - did you correctly escape the spaces and square brackets in the session name? I just tried this for a session called
easyTravel - PLEASE TAKE A LOOK [2013-03-26 20:31:51]
and with the escaping the following URI works:
http://localhost:8020/rest/management/sessions/easyTravel%20-%20PLEASE%20TAKE%20A%20LOOK%20%5B2013-03-26%2020:31:51%5D/export
Space - %20
[ - %5B
] - %5D
Best, Roman
Thanks Roman! the export worked. I was not escaping the square brackets earlier. Also it would have been better if your example were there in the in the documentation itself.
I have added the below RFE for custom session name using the REST API.
'storepurepath' REST call to have option for custom session name.
Thanks,
Sreerag
JANUARY 15, 3:00 PM GMT / 10:00 AM ET