This function is used to trigger a capture run and is part of the Capture API
/capture/run
This may be a GET or POST request.
For example, the full URL on the server mycompanyname in site default would be….
https://mycompanyname/s/default/capture/run?name=mycapturetype
format: json or xml.
name: The code of the capture type.
Optional Parameters
debug: If true, displays additional diagnostic information on the run.
The response is in HTML format. It's largely diagnostic in nature. It can be disregarded or used in whatever format you see fit.