The blank template for a declared import.
curl --request GET \
--url https://api.vectorshift.ai/v1/object-model/imports/{import_id}/template \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vectorshift.ai/v1/object-model/imports/{import_id}/template"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vectorshift.ai/v1/object-model/imports/{import_id}/template', 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.vectorshift.ai/v1/object-model/imports/{import_id}/template",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.vectorshift.ai/v1/object-model/imports/{import_id}/template"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vectorshift.ai/v1/object-model/imports/{import_id}/template")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vectorshift.ai/v1/object-model/imports/{import_id}/template")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"error": "<string>",
"inspection": {
"fields": [
{
"field": "<string>",
"kind": "<string>",
"label": "<string>",
"links_to": "<string>",
"on_create": true,
"options": [
{
"label": "<string>",
"value": "<string>"
}
]
}
],
"sheets": [
{
"columns": [
{
"column": 123,
"distinct": 123,
"filled": 123,
"heading": "<string>",
"values": [
{
"count": 123,
"text": "<string>"
}
]
}
],
"heading_row": 123,
"name": "<string>",
"rows": 123
}
]
},
"invalidated_definitions": [
"<string>"
],
"issue_rows": [
{
"issues": [
{
"column": "<string>",
"message": "<string>"
}
],
"row": 123
}
],
"report": {
"id": "<string>",
"metadata": {
"content_hash": "<string>",
"created_timestamp": "2023-11-07T05:31:56Z",
"mime_type": "<string>",
"name": "<string>",
"path": "<string>",
"save_file_description": "<string>",
"save_file_send": true,
"save_file_target_id": "<string>"
},
"raw_bytes": "<string>"
},
"rows_with_issues": 123,
"saved": 123,
"total_rows": 123,
"tracker": {
"created": 123,
"heading_row": 123,
"missing_headings": [
"<string>"
],
"overwrite_offered": true,
"overwrote": true,
"rows": [
{
"changes": [
{
"after": "<string>",
"before": "<string>",
"field": "<string>",
"label": "<string>"
}
],
"flags": [
{
"chosen": "<string>",
"default_choice": "<string>",
"field": "<string>",
"kind": "<string>",
"label": "<string>",
"message": "<string>",
"options": [
{
"label": "<string>",
"value": "<string>"
}
],
"value": "<string>"
}
],
"key_label": "<string>",
"key_new": true,
"message": "<string>",
"name": "<string>",
"notes": [
"<string>"
],
"outcome": "<string>",
"record_id": "<string>",
"record_label": "<string>",
"row": 123
}
],
"sheet": "<string>",
"sheets": [
{
"heading_row": 123,
"name": "<string>",
"readable": true,
"rows": 123
}
],
"unread_headings": [
"<string>"
],
"updated": 123
}
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}Imports
Get an import template
The blank template for a declared import.
GET
/
v1
/
object-model
/
imports
/
{import_id}
/
template
The blank template for a declared import.
curl --request GET \
--url https://api.vectorshift.ai/v1/object-model/imports/{import_id}/template \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vectorshift.ai/v1/object-model/imports/{import_id}/template"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vectorshift.ai/v1/object-model/imports/{import_id}/template', 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.vectorshift.ai/v1/object-model/imports/{import_id}/template",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.vectorshift.ai/v1/object-model/imports/{import_id}/template"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vectorshift.ai/v1/object-model/imports/{import_id}/template")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vectorshift.ai/v1/object-model/imports/{import_id}/template")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"error": "<string>",
"inspection": {
"fields": [
{
"field": "<string>",
"kind": "<string>",
"label": "<string>",
"links_to": "<string>",
"on_create": true,
"options": [
{
"label": "<string>",
"value": "<string>"
}
]
}
],
"sheets": [
{
"columns": [
{
"column": 123,
"distinct": 123,
"filled": 123,
"heading": "<string>",
"values": [
{
"count": 123,
"text": "<string>"
}
]
}
],
"heading_row": 123,
"name": "<string>",
"rows": 123
}
]
},
"invalidated_definitions": [
"<string>"
],
"issue_rows": [
{
"issues": [
{
"column": "<string>",
"message": "<string>"
}
],
"row": 123
}
],
"report": {
"id": "<string>",
"metadata": {
"content_hash": "<string>",
"created_timestamp": "2023-11-07T05:31:56Z",
"mime_type": "<string>",
"name": "<string>",
"path": "<string>",
"save_file_description": "<string>",
"save_file_send": true,
"save_file_target_id": "<string>"
},
"raw_bytes": "<string>"
},
"rows_with_issues": 123,
"saved": 123,
"total_rows": 123,
"tracker": {
"created": 123,
"heading_row": 123,
"missing_headings": [
"<string>"
],
"overwrite_offered": true,
"overwrote": true,
"rows": [
{
"changes": [
{
"after": "<string>",
"before": "<string>",
"field": "<string>",
"label": "<string>"
}
],
"flags": [
{
"chosen": "<string>",
"default_choice": "<string>",
"field": "<string>",
"kind": "<string>",
"label": "<string>",
"message": "<string>",
"options": [
{
"label": "<string>",
"value": "<string>"
}
],
"value": "<string>"
}
],
"key_label": "<string>",
"key_new": true,
"message": "<string>",
"name": "<string>",
"notes": [
"<string>"
],
"outcome": "<string>",
"record_id": "<string>",
"record_label": "<string>",
"row": 123
}
],
"sheet": "<string>",
"sheets": [
{
"heading_row": 123,
"name": "<string>",
"readable": true,
"rows": 123
}
],
"unread_headings": [
"<string>"
],
"updated": 123
}
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}Authorizations
apiKeyapiKey
An API key issued with object_model scopes: Authorization: Bearer sk_…. The scopes: object_model:records:read, object_model:records:write, object_model:facts:read, object_model:facts:write, object_model:model:read, object_model:model:configure, object_model:actions:run, object_model:changes:read. An operation's security lists the scopes it needs; several entries mean any one of them will do. A person field (ref(user), ref_list(user)) holds a user id: look people up by email or id with GET /v1/users, outside this API, with a key that also has users:read.
Response
Answered.
