Controller (SaaS, On Premise)

cancel
Showing results for 
Search instead for 
Did you mean: 

Create User REST API with c# returning Exception Id:dad93984-ba2b-4f29-809a-65e6209604b3

Highlighted
Creator

I am trying to access CreateUser API using .NET framework.

I am making use of HttpRequestMessage to construct request with StringContent having header value for "Content-Type" as "application/vnd.appd.cntrl+protobuf;v=1".

HttpRequestMessage object is configured with proper content and RequestUri. 

I am making use of HttpClient object to make a POST request. HttpClient object holds the Authorizarization header value. 

httpClient.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", "<API Key>");

 

I am calling the CreateUser API as httpClient.SendAsync(request).

 

Result is : 

<html><body><h1>500 Internal Server Error</h1><br/>Exception Id:dad93984-ba2b-4f29-809a-65e6209604b3<br/></body></html>

 

Could someone please help me in solving this issue.

Tags (3)
Create User REST API with c# returning Exception Id:dad93984-ba2b-4f29-809a-65e6209604b3