You can modify the values in the following sample request based on your requirements.
curl -k -X PUT 'https://<QS_HOSTNAME>:1443/general' \
--header 'Authorization: Basic <ADMIN_TOKEN>' \
--header 'Content-Type: application/json' \
--data-raw '{
"noRowsSpoolQuery":1000000,
"noSpoolResultSets":1000,
"retentionSpool":"25",
"spaceAvailable":20,
"spoolDirectory":"/var/opt/teradata/rest/daemon/spool/",
"maxThreadCount":101
}'