We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

REST API 401 Unauthorized

Accepted answer
edited Feb 8, 2017 9:18AM in UI Extensibility 4 comments


HI all,

I am creating a REST api to get an incident but i am receiving an 401 Unauthorized error even though i am following the instructions given by https://docs.oracle.com/cloud/latest/servicecs_gs/CXSVC/Chunk116776251.html#BasicAuth-07BFBB49

i am also sharing my code, any suggestions or need any permission to access REST api?


Code Snippet

             string responseText = null;
				string _baseURL="http://MyInterface.Mysite.com/services/rest/connect/v1.3"
 //interface name and site name is changed
                HttpWebRequest request = null;
                   request = WebRequest.Create(_baseURL) as HttpWebRequest;
                   request.Method = "GET";

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!