Basic: Send a Post request to create a HTTP log stream HELP

I am getting

{“statusCode”:400,“error”:“Bad Request”,“message”:“Payload validation error: ‘Data does not match any schemas from ‘oneOf’’.”,“errorCode”:“invalid_body”}

My C# code:

        string jsonString = @"

{
““name””:““test2"”,
““type””:”“http”",
““sink””: {
““httpContentFormat””: ““JSONLINES|JSONARRAY””,
““httpContentType””: ““application/json””,
““httpEndpoint””: ““https://something.net/””
}
}
";

        var client3 = new RestClient("https://xxx.eu.auth0.com/api/v2/log-streams");
        var request3 = new RestRequest("", Method.Post);
        request3.AddBody(jsonString);
        request3.AddHeader("authorization", token);
        RestResponse response3 = client3.Execute(request3);

Fixed- should only have one of those

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.