AnsweredAssumed Answered

Issue in logging out user from Java - programmatically

Question asked by pradeepsimha on Apr 4, 2014
Latest reply on Apr 4, 2014 by pradeepsimha
Hi Team,

I am trying to logout a user programmatically using the following REST API:


But from Java I am getting following error:

<code>Failed : HTTP error code : 401:

But if I try to hit the url directly from the browser, it asks for Admin user login, so I provide that and it will work perfectly. I know before deleting a ticket I need to authenticate using Admin user, but I am trying to figure out how to do this programmatically? Before I delete a user should I again login using Admin user? Or is there anyway? Because help docs doesn't specify how to do this.

Can someone kindly help me in this?