Tool to upload qex file through CcaWebAPI
We have created a utility that allows you to upload a qex (and update it) via the CcaWebAPI.
This tool is available here.
This tool works in command line and connects to your CcaWebAPI link.
PARAMETERS
Here the list of parameters that can be used into the command line:
Parameter |
Action |
-u, --url |
Required. The url to the ccawebapi |
-I, --Id |
Switch to update content, survey id to update content for |
-t, --token |
Required. API token |
-n, --name |
New surveyname, if not provided the qes file name will be used |
-i, --input |
Required. Inputfile to upload and use as qes file |
-v, --verbose |
(Default: false) Set the output mode to verbose logging |
-d, --description |
Sets the description of the created survey |
-m, --mintarget |
(Default: 1000) Sets the quota minimum quota target count |
-M, --maxtarget |
(Default: 1000) Sets the quota maximum quota target count |
-k, --keepincompletes |
(Default: false) Keep incomplete interviews |
--help |
Display this help screen. |
--version |
Display version information. |
EXAMPLES
Survey Creation
DemoUploadQes -t "A-72a0c61e-0aa4-4c22-b0f0-bfe6bd4toto" -u "http://127.0.0.1/ccawebapi" -n "test_upload_tool_create_20240116_v2" -i "D:\UploadQex\test_upload_tool_create_20240116_v2.qex" -d "my survey from ccawebapi" -m 5000 -M 10000 -k
Survey Update
DemoUploadQes -I 12033 -t "A-72a0c61e-0aa4-4c22-b0f0-bfe6bd4toto" -u "http://127.0.0.1/ccawebapi" -i "D:\UploadQex\test_upload_tool_20240116_v2.qex"