curl --request POST \
--url https://{FUSION HOST}/api/tasks \
--header 'Content-Type: application/json' \
--data '{
"type": "rest-call",
"id": "test-task-created",
"callParams": {
"uri": "solr://system_jobs_history/update",
"method": "post",
"queryParams": {
"wt": "json"
},
"headers": {},
"entity": "<root><delete><query>timestamp_dt:[* TO NOW-30DAYS] AND type_s:history</query></delete><commit /></root>"
}
}'
{
"id": "<string>",
"type": "<string>"
}
Create a new task.
curl --request POST \
--url https://{FUSION HOST}/api/tasks \
--header 'Content-Type: application/json' \
--data '{
"type": "rest-call",
"id": "test-task-created",
"callParams": {
"uri": "solr://system_jobs_history/update",
"method": "post",
"queryParams": {
"wt": "json"
},
"headers": {},
"entity": "<root><delete><query>timestamp_dt:[* TO NOW-30DAYS] AND type_s:history</query></delete><commit /></root>"
}
}'
{
"id": "<string>",
"type": "<string>"
}
JSON-formatted configuration values.
The body is of type object
.
successful operation
The response is of type object
.
Was this page helpful?