We start by opening a draft of a judicial file. We specify a file name as a query string

var client = new RestClient("https://api.medicys-conventionnel.fr/api/JudicialFile/CreateFile?fileName=Test");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
var client = new RestClient("https://staging-api.medicys-conventionnel.fr/api/JudicialFile/CreateFile?fileName=Test");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);