curl --request DELETE \
--url https://api.extole.io/v6/jobs/{jobId}/tasks/{taskId} \
--header 'Authorization: <api-key>'import requests
url = "https://api.extole.io/v6/jobs/{jobId}/tasks/{taskId}"
headers = {"Authorization": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: '<api-key>'}};
fetch('https://api.extole.io/v6/jobs/{jobId}/tasks/{taskId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.extole.io/v6/jobs/{jobId}/tasks/{taskId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.extole.io/v6/jobs/{jobId}/tasks/{taskId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.extole.io/v6/jobs/{jobId}/tasks/{taskId}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.extole.io/v6/jobs/{jobId}/tasks/{taskId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"component_ids": [
"<string>"
],
"component_references": [
{
"component_id": "<string>",
"socket_names": [
"<string>"
]
}
],
"id": "<string>",
"order": 123,
"parent_job_id": "<string>",
"task_type": "FILE_HEADER_VALIDATOR",
"expected_headers": [
"<string>"
],
"match_mode": "EXACT_SET",
"on_mismatch": "FAIL"
}Delete a task
Soft-deletes the task and compacts remaining order values. Deleting an unattached task leaves other tasks untouched.
curl --request DELETE \
--url https://api.extole.io/v6/jobs/{jobId}/tasks/{taskId} \
--header 'Authorization: <api-key>'import requests
url = "https://api.extole.io/v6/jobs/{jobId}/tasks/{taskId}"
headers = {"Authorization": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: '<api-key>'}};
fetch('https://api.extole.io/v6/jobs/{jobId}/tasks/{taskId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.extole.io/v6/jobs/{jobId}/tasks/{taskId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.extole.io/v6/jobs/{jobId}/tasks/{taskId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.extole.io/v6/jobs/{jobId}/tasks/{taskId}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.extole.io/v6/jobs/{jobId}/tasks/{taskId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"component_ids": [
"<string>"
],
"component_references": [
{
"component_id": "<string>",
"socket_names": [
"<string>"
]
}
],
"id": "<string>",
"order": 123,
"parent_job_id": "<string>",
"task_type": "FILE_HEADER_VALIDATOR",
"expected_headers": [
"<string>"
],
"match_mode": "EXACT_SET",
"on_mismatch": "FAIL"
}Authorizations
Path Parameters
The unique identifier of the job that owns the task. Use the reserved value unattached to address tasks that are not attached to any job, which happens when a component defines a task whose parent_job_id expression evaluates to nothing.
Response
Successful response
- Option 1
- Option 2
- Option 3
Stored task definition. Field order is unevaluated and appears in buildtime-evaluatable form.
Show child attributes
Show child attributes
Unique id of the task.
Position of this task in the job, as the buildtime expression or literal that was saved. Re-evaluated on campaign publish to determine the task's resolved execution order. Buildtime expressions use JobBuildtimeContext.
Id of the job this task belongs to, as the buildtime expression or literal that was saved. Buildtime expressions use JobBuildtimeContext.
FILE_HEADER_VALIDATOR Headers the validated file is expected to contain. A literal value or a buildtime expression resolved from component references when the task is saved. Buildtime expressions use JobBuildtimeContext.
Headers the validated file is expected to contain. A literal value or a buildtime expression resolved from component references when the task is saved.
EXACT_SET, ORDERED, SUBSET Action taken when the headers do not match. A literal value or a buildtime expression resolved from component references when the task is saved. Buildtime expressions use JobBuildtimeContext.
FAIL, WARN 