POST
/
tasks
Create a 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>"
}

Body

application/json · object

JSON-formatted configuration values.

The body is of type object.

Response

200 - application/json

successful operation

The response is of type object.