Submit batch jobs with args.txt via REST API

Hi,

I’m having trouble with the proper syntax for submitting batch jobs via the REST service.
I’ve tried:

'{"JobInfo": {"Plugin": "CommandLine"}, "PluginInfo": {"Arguments": "C:/args.txt"},"AuxFiles":[],"IdOnly":true}'

And several permutations otherwise changing where I call the argument. I’ve had to guess what the
web service wants since the documentation on it is pretty light.
It always submits to deadline but not as a batch job or doing anything like what I’d expect from running it via the command line.

There must a be a way to do this, right?

Thanks!

Pretty sure you need to include the “Executable” field for CommandLine to work…?

So this works if I pass deadlinecommand.exe as the executable and the args txt file as the argument.
It still kicks off a job that kicks off the args list job, however. Is there a way to minimize the extra “job within a job”?
Literally all I want to do is the REST equivalent of:

commandline.exe C:/path/to/my/args.txt
Much like I would do on a terminal. In a terminal it does not create an extra job that submits a job from the args list.

Thanks!