Uploading
Terminate Connector workflow
Allowed only in STARTED status. Session returns to UPLOADING after Connector confirms cancellation.
POST
/
uploading
/
{upload_uuid}
/
terminate
Terminate Connector workflow
curl --request POST \
--url https://etl-api-dev2.datawiz.io/api/v1/uploading/{upload_uuid}/terminate \
--header 'Authorization: <api-key>' \
--header 'Client-Id: <api-key>'import requests
url = "https://etl-api-dev2.datawiz.io/api/v1/uploading/{upload_uuid}/terminate"
headers = {
"Authorization": "<api-key>",
"Client-Id": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Client-Id': '<api-key>'}
};
fetch('https://etl-api-dev2.datawiz.io/api/v1/uploading/{upload_uuid}/terminate', 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://etl-api-dev2.datawiz.io/api/v1/uploading/{upload_uuid}/terminate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Client-Id: <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://etl-api-dev2.datawiz.io/api/v1/uploading/{upload_uuid}/terminate"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Client-Id", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://etl-api-dev2.datawiz.io/api/v1/uploading/{upload_uuid}/terminate")
.header("Authorization", "<api-key>")
.header("Client-Id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://etl-api-dev2.datawiz.io/api/v1/uploading/{upload_uuid}/terminate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Client-Id"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "<string>",
"message": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Previous
Upload entity dataJSON body with `columns` and `data`. Validation is synchronous; S3 write is asynchronous.
Next
⌘I
Terminate Connector workflow
curl --request POST \
--url https://etl-api-dev2.datawiz.io/api/v1/uploading/{upload_uuid}/terminate \
--header 'Authorization: <api-key>' \
--header 'Client-Id: <api-key>'import requests
url = "https://etl-api-dev2.datawiz.io/api/v1/uploading/{upload_uuid}/terminate"
headers = {
"Authorization": "<api-key>",
"Client-Id": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Client-Id': '<api-key>'}
};
fetch('https://etl-api-dev2.datawiz.io/api/v1/uploading/{upload_uuid}/terminate', 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://etl-api-dev2.datawiz.io/api/v1/uploading/{upload_uuid}/terminate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Client-Id: <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://etl-api-dev2.datawiz.io/api/v1/uploading/{upload_uuid}/terminate"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Client-Id", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://etl-api-dev2.datawiz.io/api/v1/uploading/{upload_uuid}/terminate")
.header("Authorization", "<api-key>")
.header("Client-Id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://etl-api-dev2.datawiz.io/api/v1/uploading/{upload_uuid}/terminate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Client-Id"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "<string>",
"message": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}