Get Or Create Submission Output
curl --request POST \
--url https://vision.pingintel.com/api/v1/submission/{id}/get_or_create_output \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"output_format": "<string>",
"overwrite_existing": true
}
'import requests
url = "https://vision.pingintel.com/api/v1/submission/{id}/get_or_create_output"
payload = {
"output_format": "<string>",
"overwrite_existing": True
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({output_format: '<string>', overwrite_existing: true})
};
fetch('https://vision.pingintel.com/api/v1/submission/{id}/get_or_create_output', 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://vision.pingintel.com/api/v1/submission/{id}/get_or_create_output",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'output_format' => '<string>',
'overwrite_existing' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://vision.pingintel.com/api/v1/submission/{id}/get_or_create_output"
payload := strings.NewReader("{\n \"output_format\": \"<string>\",\n \"overwrite_existing\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://vision.pingintel.com/api/v1/submission/{id}/get_or_create_output")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"output_format\": \"<string>\",\n \"overwrite_existing\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://vision.pingintel.com/api/v1/submission/{id}/get_or_create_output")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"output_format\": \"<string>\",\n \"overwrite_existing\": true\n}"
response = http.request(request)
puts response.read_bodyGet Submission Data
Get Or Create Submission Output
If an output file is already available, it will be returned. If not, a new output file will be generated and an id will be provided to check the status.
POST
/
api
/
v1
/
submission
/
{id}
/
get_or_create_output
Get Or Create Submission Output
curl --request POST \
--url https://vision.pingintel.com/api/v1/submission/{id}/get_or_create_output \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"output_format": "<string>",
"overwrite_existing": true
}
'import requests
url = "https://vision.pingintel.com/api/v1/submission/{id}/get_or_create_output"
payload = {
"output_format": "<string>",
"overwrite_existing": True
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({output_format: '<string>', overwrite_existing: true})
};
fetch('https://vision.pingintel.com/api/v1/submission/{id}/get_or_create_output', 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://vision.pingintel.com/api/v1/submission/{id}/get_or_create_output",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'output_format' => '<string>',
'overwrite_existing' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://vision.pingintel.com/api/v1/submission/{id}/get_or_create_output"
payload := strings.NewReader("{\n \"output_format\": \"<string>\",\n \"overwrite_existing\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://vision.pingintel.com/api/v1/submission/{id}/get_or_create_output")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"output_format\": \"<string>\",\n \"overwrite_existing\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://vision.pingintel.com/api/v1/submission/{id}/get_or_create_output")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"output_format\": \"<string>\",\n \"overwrite_existing\": true\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Supports Token-prefixed API keys and Bearer-prefixed JWT-based authentication.
Path Parameters
The pingid of the submission.
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Response
201
Output response with request status and result if already available.
⌘I