Submitting the file

Finally, submit the file using the FileId to mark the end of the draft. You will no longer be able to modify the case past this stage.

var client = new RestClient("https://api.medicys-conventionnel.fr/api/JudicialFile/ConfirmFileSubmission");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddParameter("text/plain", "{\"FileId\": \"27FF7826-0DED-4101-9FB4-81991117B656\",\"ModifiedDate\": \"2020-06-01T15:42:23.787Z\"}",  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
var client = new RestClient("https://staging-api.medicys-conventionnel.fr/api/JudicialFile/ConfirmFileSubmission");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddParameter("text/plain", "{\"FileId\": \"27FF7826-0DED-4101-9FB4-81991117B656\",\"ModifiedDate\": \"2020-06-01T15:42:23.787Z\"}",  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);