Recreate to JSON
curl --request GET \
--url https://prism-api.prosights.co/enterprise-api/recreate/{recreate_id}/to_json \
--header 'X-Prosights-Api-Key: <api-key>'import requests
url = "https://prism-api.prosights.co/enterprise-api/recreate/{recreate_id}/to_json"
headers = {"X-Prosights-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Prosights-Api-Key': '<api-key>'}};
fetch('https://prism-api.prosights.co/enterprise-api/recreate/{recreate_id}/to_json', 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://prism-api.prosights.co/enterprise-api/recreate/{recreate_id}/to_json",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Prosights-Api-Key: <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://prism-api.prosights.co/enterprise-api/recreate/{recreate_id}/to_json"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Prosights-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://prism-api.prosights.co/enterprise-api/recreate/{recreate_id}/to_json")
.header("X-Prosights-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://prism-api.prosights.co/enterprise-api/recreate/{recreate_id}/to_json")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Prosights-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"tables": [
{
"headers": [
"<string>"
],
"rows": [
{
"row_identifier": "<string>",
"cells": [
{
"value": "<string>",
"column_header": "<string>",
"bbox": {}
}
],
"row_type": "<string>"
}
],
"metadata": {}
}
],
"charts": [
{
"headers": [
"<string>"
],
"rows": [
{
"row_identifier": "<string>",
"cells": [
{
"value": "<string>",
"column_header": "<string>",
"bbox": {}
}
],
"row_type": "<string>"
}
],
"metadata": {}
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Recreate
Recreate to JSON
Returns the JSON shape for table outputs. Note: This will return data as it becomes available.
GET
/
enterprise-api
/
recreate
/
{recreate_id}
/
to_json
Recreate to JSON
curl --request GET \
--url https://prism-api.prosights.co/enterprise-api/recreate/{recreate_id}/to_json \
--header 'X-Prosights-Api-Key: <api-key>'import requests
url = "https://prism-api.prosights.co/enterprise-api/recreate/{recreate_id}/to_json"
headers = {"X-Prosights-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Prosights-Api-Key': '<api-key>'}};
fetch('https://prism-api.prosights.co/enterprise-api/recreate/{recreate_id}/to_json', 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://prism-api.prosights.co/enterprise-api/recreate/{recreate_id}/to_json",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Prosights-Api-Key: <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://prism-api.prosights.co/enterprise-api/recreate/{recreate_id}/to_json"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Prosights-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://prism-api.prosights.co/enterprise-api/recreate/{recreate_id}/to_json")
.header("X-Prosights-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://prism-api.prosights.co/enterprise-api/recreate/{recreate_id}/to_json")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Prosights-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"tables": [
{
"headers": [
"<string>"
],
"rows": [
{
"row_identifier": "<string>",
"cells": [
{
"value": "<string>",
"column_header": "<string>",
"bbox": {}
}
],
"row_type": "<string>"
}
],
"metadata": {}
}
],
"charts": [
{
"headers": [
"<string>"
],
"rows": [
{
"row_identifier": "<string>",
"cells": [
{
"value": "<string>",
"column_header": "<string>",
"bbox": {}
}
],
"row_type": "<string>"
}
],
"metadata": {}
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?
⌘I
