Get a template by row ID
curl --request GET \
--url https://api.cloneable.ai/data-object-template/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.cloneable.ai/data-object-template/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.cloneable.ai/data-object-template/{id}', 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.cloneable.ai/data-object-template/{id}",
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-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://api.cloneable.ai/data-object-template/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-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://api.cloneable.ai/data-object-template/{id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloneable.ai/data-object-template/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name_id": "<string>",
"object_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"object_description": "<string>",
"object_display_name": "<string>",
"object_name": "<string>",
"fields": [
{
"display_name": "<string>",
"field_id": "<string>",
"name": "<string>",
"type": "<string>",
"array_sub_type": "<string>",
"json_schema": "<string>",
"json_schema_id": "<string>",
"object_description": "<string>",
"linked_object_display_name": "<string>",
"linked_object_name": "<string>",
"linked_object_revision": 123,
"linked_object_template_id": "<string>",
"linked_object_id": "<string>",
"itemFields": [
{
"field_id": "<string>",
"name": "<string>",
"display_name": "<string>",
"type": "<string>",
"status_options": [
"<string>"
],
"requiredFor": {
"completion": false,
"creation": false
},
"readonly": true,
"rules": {
"combinator": "all",
"conditions": [
{
"field_id": "<string>",
"operator": "eq",
"value": null,
"link": {
"field_id": "<string>",
"from": "<string>",
"match": "any",
"template": "<string>"
}
}
],
"expression": "<string>",
"label": "<string>",
"effect": "hide"
},
"requiredWhen": {
"combinator": "all",
"conditions": [
{
"field_id": "<string>",
"operator": "eq",
"value": null,
"link": {
"field_id": "<string>",
"from": "<string>",
"match": "any",
"template": "<string>"
}
}
],
"expression": "<string>",
"label": "<string>"
},
"constraint": {
"expression": "<string>",
"message": "<string>"
},
"domain": {
"source": "customType",
"customTypeId": "<string>",
"levels": [
"<string>"
],
"expression": "<string>",
"label": "<string>",
"facets": [
"<string>"
],
"valueKey": "key",
"labelKey": "<string>"
}
}
],
"modified_at": "2023-11-07T05:31:56Z",
"modified_by": "<string>",
"requiredFor": {
"completion": false,
"creation": false
},
"file_information": {
"file_type": "<string>",
"one_way_sync": true,
"storage_auth_provider_name": "<string>",
"storage_auth_provider_ref_id": "<string>",
"storage_provider": "<string>"
},
"status_options": [
"<string>"
],
"custom_type_id": "<string>",
"custom_type_property": "<string>",
"visible": true,
"readonly": true,
"multiline": true,
"capture": {
"method": "ar_measure",
"source": "length",
"format": "metric"
},
"rules": {
"combinator": "all",
"conditions": [
{
"field_id": "<string>",
"operator": "eq",
"value": null,
"link": {
"field_id": "<string>",
"from": "<string>",
"match": "any",
"template": "<string>"
}
}
],
"expression": "<string>",
"label": "<string>",
"effect": "hide"
},
"requiredWhen": {
"combinator": "all",
"conditions": [
{
"field_id": "<string>",
"operator": "eq",
"value": null,
"link": {
"field_id": "<string>",
"from": "<string>",
"match": "any",
"template": "<string>"
}
}
],
"expression": "<string>",
"label": "<string>"
},
"readonlyWhen": {
"combinator": "all",
"conditions": [
{
"field_id": "<string>",
"operator": "eq",
"value": null,
"link": {
"field_id": "<string>",
"from": "<string>",
"match": "any",
"template": "<string>"
}
}
],
"expression": "<string>",
"label": "<string>"
},
"binding": {
"kind": "path",
"path": "<string>",
"from": "<string>",
"column": "<string>",
"expression": "<string>",
"aggregate": {
"pick": "lowest",
"output": {
"as": "number",
"unit": "m",
"decimals": 3
},
"where": {
"owners": [
"<string>"
],
"classifications": [
"<string>"
]
},
"prefer": {
"owners": [
"<string>"
],
"classifications": [
"<string>"
]
},
"n": 2
},
"convert": {
"from": "m",
"to": "m",
"decimals": 3
},
"mode": "auto"
},
"domain": {
"source": "customType",
"customTypeId": "<string>",
"levels": [
"<string>"
],
"expression": "<string>",
"label": "<string>",
"facets": [
"<string>"
],
"valueKey": "key",
"labelKey": "<string>"
},
"constraint": {
"expression": "<string>",
"message": "<string>"
}
}
],
"revision": -1,
"type_ref_id": "<string>",
"modified_by": "<string>",
"created_by": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z",
"is_template": true,
"icons": [
{
"id": "<string>",
"name": "<string>",
"stoke_color": "<string>",
"encoded": "<string>",
"icon_key": "<string>",
"fill_color": "<string>",
"conditional": "<string>",
"map_type": "point",
"line_style": "solid"
}
],
"archived_at": "2023-11-07T05:31:56Z",
"mirror_owner_company_id": "<string>",
"mirror_relationship_id": "<string>",
"mirror_source_id": "<string>",
"mirror_revision": -1,
"mirrored_at": "2023-11-07T05:31:56Z",
"mirror_frozen_at": "2023-11-07T05:31:56Z",
"company_id": "<string>"
}{
"message": "<string>",
"fieldErrors": {}
}{
"message": "Invalid API Key"
}{
"message": "Invalid API Key"
}{
"message": "<string>"
}{
"message": "Invalid API Key"
}{
"message": "<string>"
}Templates
Get a template by row ID
Retrieve a single data object template by its primary row ID.
GET
/
data-object-template
/
{id}
Get a template by row ID
curl --request GET \
--url https://api.cloneable.ai/data-object-template/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.cloneable.ai/data-object-template/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.cloneable.ai/data-object-template/{id}', 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.cloneable.ai/data-object-template/{id}",
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-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://api.cloneable.ai/data-object-template/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-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://api.cloneable.ai/data-object-template/{id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloneable.ai/data-object-template/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name_id": "<string>",
"object_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"object_description": "<string>",
"object_display_name": "<string>",
"object_name": "<string>",
"fields": [
{
"display_name": "<string>",
"field_id": "<string>",
"name": "<string>",
"type": "<string>",
"array_sub_type": "<string>",
"json_schema": "<string>",
"json_schema_id": "<string>",
"object_description": "<string>",
"linked_object_display_name": "<string>",
"linked_object_name": "<string>",
"linked_object_revision": 123,
"linked_object_template_id": "<string>",
"linked_object_id": "<string>",
"itemFields": [
{
"field_id": "<string>",
"name": "<string>",
"display_name": "<string>",
"type": "<string>",
"status_options": [
"<string>"
],
"requiredFor": {
"completion": false,
"creation": false
},
"readonly": true,
"rules": {
"combinator": "all",
"conditions": [
{
"field_id": "<string>",
"operator": "eq",
"value": null,
"link": {
"field_id": "<string>",
"from": "<string>",
"match": "any",
"template": "<string>"
}
}
],
"expression": "<string>",
"label": "<string>",
"effect": "hide"
},
"requiredWhen": {
"combinator": "all",
"conditions": [
{
"field_id": "<string>",
"operator": "eq",
"value": null,
"link": {
"field_id": "<string>",
"from": "<string>",
"match": "any",
"template": "<string>"
}
}
],
"expression": "<string>",
"label": "<string>"
},
"constraint": {
"expression": "<string>",
"message": "<string>"
},
"domain": {
"source": "customType",
"customTypeId": "<string>",
"levels": [
"<string>"
],
"expression": "<string>",
"label": "<string>",
"facets": [
"<string>"
],
"valueKey": "key",
"labelKey": "<string>"
}
}
],
"modified_at": "2023-11-07T05:31:56Z",
"modified_by": "<string>",
"requiredFor": {
"completion": false,
"creation": false
},
"file_information": {
"file_type": "<string>",
"one_way_sync": true,
"storage_auth_provider_name": "<string>",
"storage_auth_provider_ref_id": "<string>",
"storage_provider": "<string>"
},
"status_options": [
"<string>"
],
"custom_type_id": "<string>",
"custom_type_property": "<string>",
"visible": true,
"readonly": true,
"multiline": true,
"capture": {
"method": "ar_measure",
"source": "length",
"format": "metric"
},
"rules": {
"combinator": "all",
"conditions": [
{
"field_id": "<string>",
"operator": "eq",
"value": null,
"link": {
"field_id": "<string>",
"from": "<string>",
"match": "any",
"template": "<string>"
}
}
],
"expression": "<string>",
"label": "<string>",
"effect": "hide"
},
"requiredWhen": {
"combinator": "all",
"conditions": [
{
"field_id": "<string>",
"operator": "eq",
"value": null,
"link": {
"field_id": "<string>",
"from": "<string>",
"match": "any",
"template": "<string>"
}
}
],
"expression": "<string>",
"label": "<string>"
},
"readonlyWhen": {
"combinator": "all",
"conditions": [
{
"field_id": "<string>",
"operator": "eq",
"value": null,
"link": {
"field_id": "<string>",
"from": "<string>",
"match": "any",
"template": "<string>"
}
}
],
"expression": "<string>",
"label": "<string>"
},
"binding": {
"kind": "path",
"path": "<string>",
"from": "<string>",
"column": "<string>",
"expression": "<string>",
"aggregate": {
"pick": "lowest",
"output": {
"as": "number",
"unit": "m",
"decimals": 3
},
"where": {
"owners": [
"<string>"
],
"classifications": [
"<string>"
]
},
"prefer": {
"owners": [
"<string>"
],
"classifications": [
"<string>"
]
},
"n": 2
},
"convert": {
"from": "m",
"to": "m",
"decimals": 3
},
"mode": "auto"
},
"domain": {
"source": "customType",
"customTypeId": "<string>",
"levels": [
"<string>"
],
"expression": "<string>",
"label": "<string>",
"facets": [
"<string>"
],
"valueKey": "key",
"labelKey": "<string>"
},
"constraint": {
"expression": "<string>",
"message": "<string>"
}
}
],
"revision": -1,
"type_ref_id": "<string>",
"modified_by": "<string>",
"created_by": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z",
"is_template": true,
"icons": [
{
"id": "<string>",
"name": "<string>",
"stoke_color": "<string>",
"encoded": "<string>",
"icon_key": "<string>",
"fill_color": "<string>",
"conditional": "<string>",
"map_type": "point",
"line_style": "solid"
}
],
"archived_at": "2023-11-07T05:31:56Z",
"mirror_owner_company_id": "<string>",
"mirror_relationship_id": "<string>",
"mirror_source_id": "<string>",
"mirror_revision": -1,
"mirrored_at": "2023-11-07T05:31:56Z",
"mirror_frozen_at": "2023-11-07T05:31:56Z",
"company_id": "<string>"
}{
"message": "<string>",
"fieldErrors": {}
}{
"message": "Invalid API Key"
}{
"message": "Invalid API Key"
}{
"message": "<string>"
}{
"message": "Invalid API Key"
}{
"message": "<string>"
}Authorizations
Response
Success