Open SamuelOhrenberg-OCCC opened 6 months ago
You can pass headers into the PostAsync() method.
PostAsync( Dictionary<string, string> headers, string url, string body = "" )
Something like:
Dictionary<string, string> customHeaders = new Dictionary<string, string>(); customHeaders .Add("Content-Type", "application/vnd.hedtech.integration.person-matching-requests-initiations-prospects.v1+json" );
PostAsync( customHeaders , ...
Hello, all
I am just now getting started trying to use this in a C# app that I am building for my institution. I am trying to send a POST request to
person-matching-requests
to initiate the creation of a new person in our Colleague instance. However, I am getting a 404 error in my request because the Content-Type of the request being sent is "application/json" and the endpoint requires it be set to "application/vnd.hedtech.integration.person-matching-requests-initiations-prospects.v1+json".Is it possible to force that Content Type to be updated via this library?