I have created a new Process to create a DOCX from a DOCX template.
I can run the process (successfully) in the My Account Website, and I have copied the URL to the process from the REST API tab in the site.
Below is my code, when I call this, my response.Content is blank, and the job is not executed (it does not appear in the list of executions in the web site.
What am I doing wrong?
var client = new RestClient("URLTOPROCESSREMOVED");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "KEYREMOVED");
request.AddParameter("Data", JsonSerializer.Serialize(data));
request.AddParameter("Locale", "en-US");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
NOTE: I have also tried the data param like this:
request.AddParameter("Data", JsonSerializer.Serialize(data).ToString());