Create a data object
curl --request PUT \
--url https://api.cloneable.ai/data-object \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"id": "a1b2c3d4-0000-4000-8000-000000000001",
"object_template_id": "c0ffee00-0000-4000-8000-000000000001",
"object_name": "pole",
"object_display_name": "P-1042",
"fields": [
{
"id": "f0000001-0000-4000-8000-000000000001",
"field_id": "job_id",
"name": "job_id",
"display_name": "Job ID",
"type": "string",
"stored_value": "71ed980b-2269-49fd-b7b8-1e97280f2963",
"modified_at": "2026-11-02T18:45:12.000Z"
},
{
"id": "f0000002-0000-4000-8000-000000000002",
"field_id": "pole_tag",
"name": "pole_tag",
"display_name": "Pole Tag",
"type": "string",
"stored_value": "P-1042",
"modified_at": "2026-11-02T18:45:12.000Z"
}
]
}
'import requests
url = "https://api.cloneable.ai/data-object"
payload = {
"id": "a1b2c3d4-0000-4000-8000-000000000001",
"object_template_id": "c0ffee00-0000-4000-8000-000000000001",
"object_name": "pole",
"object_display_name": "P-1042",
"fields": [
{
"id": "f0000001-0000-4000-8000-000000000001",
"field_id": "job_id",
"name": "job_id",
"display_name": "Job ID",
"type": "string",
"stored_value": "71ed980b-2269-49fd-b7b8-1e97280f2963",
"modified_at": "2026-11-02T18:45:12.000Z"
},
{
"id": "f0000002-0000-4000-8000-000000000002",
"field_id": "pole_tag",
"name": "pole_tag",
"display_name": "Pole Tag",
"type": "string",
"stored_value": "P-1042",
"modified_at": "2026-11-02T18:45:12.000Z"
}
]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: 'a1b2c3d4-0000-4000-8000-000000000001',
object_template_id: 'c0ffee00-0000-4000-8000-000000000001',
object_name: 'pole',
object_display_name: 'P-1042',
fields: [
{
id: 'f0000001-0000-4000-8000-000000000001',
field_id: 'job_id',
name: 'job_id',
display_name: 'Job ID',
type: 'string',
stored_value: '71ed980b-2269-49fd-b7b8-1e97280f2963',
modified_at: '2026-11-02T18:45:12.000Z'
},
{
id: 'f0000002-0000-4000-8000-000000000002',
field_id: 'pole_tag',
name: 'pole_tag',
display_name: 'Pole Tag',
type: 'string',
stored_value: 'P-1042',
modified_at: '2026-11-02T18:45:12.000Z'
}
]
})
};
fetch('https://api.cloneable.ai/data-object', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'id' => 'a1b2c3d4-0000-4000-8000-000000000001',
'object_template_id' => 'c0ffee00-0000-4000-8000-000000000001',
'object_name' => 'pole',
'object_display_name' => 'P-1042',
'fields' => [
[
'id' => 'f0000001-0000-4000-8000-000000000001',
'field_id' => 'job_id',
'name' => 'job_id',
'display_name' => 'Job ID',
'type' => 'string',
'stored_value' => '71ed980b-2269-49fd-b7b8-1e97280f2963',
'modified_at' => '2026-11-02T18:45:12.000Z'
],
[
'id' => 'f0000002-0000-4000-8000-000000000002',
'field_id' => 'pole_tag',
'name' => 'pole_tag',
'display_name' => 'Pole Tag',
'type' => 'string',
'stored_value' => 'P-1042',
'modified_at' => '2026-11-02T18:45:12.000Z'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cloneable.ai/data-object"
payload := strings.NewReader("{\n \"id\": \"a1b2c3d4-0000-4000-8000-000000000001\",\n \"object_template_id\": \"c0ffee00-0000-4000-8000-000000000001\",\n \"object_name\": \"pole\",\n \"object_display_name\": \"P-1042\",\n \"fields\": [\n {\n \"id\": \"f0000001-0000-4000-8000-000000000001\",\n \"field_id\": \"job_id\",\n \"name\": \"job_id\",\n \"display_name\": \"Job ID\",\n \"type\": \"string\",\n \"stored_value\": \"71ed980b-2269-49fd-b7b8-1e97280f2963\",\n \"modified_at\": \"2026-11-02T18:45:12.000Z\"\n },\n {\n \"id\": \"f0000002-0000-4000-8000-000000000002\",\n \"field_id\": \"pole_tag\",\n \"name\": \"pole_tag\",\n \"display_name\": \"Pole Tag\",\n \"type\": \"string\",\n \"stored_value\": \"P-1042\",\n \"modified_at\": \"2026-11-02T18:45:12.000Z\"\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<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.put("https://api.cloneable.ai/data-object")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"a1b2c3d4-0000-4000-8000-000000000001\",\n \"object_template_id\": \"c0ffee00-0000-4000-8000-000000000001\",\n \"object_name\": \"pole\",\n \"object_display_name\": \"P-1042\",\n \"fields\": [\n {\n \"id\": \"f0000001-0000-4000-8000-000000000001\",\n \"field_id\": \"job_id\",\n \"name\": \"job_id\",\n \"display_name\": \"Job ID\",\n \"type\": \"string\",\n \"stored_value\": \"71ed980b-2269-49fd-b7b8-1e97280f2963\",\n \"modified_at\": \"2026-11-02T18:45:12.000Z\"\n },\n {\n \"id\": \"f0000002-0000-4000-8000-000000000002\",\n \"field_id\": \"pole_tag\",\n \"name\": \"pole_tag\",\n \"display_name\": \"Pole Tag\",\n \"type\": \"string\",\n \"stored_value\": \"P-1042\",\n \"modified_at\": \"2026-11-02T18:45:12.000Z\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloneable.ai/data-object")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"a1b2c3d4-0000-4000-8000-000000000001\",\n \"object_template_id\": \"c0ffee00-0000-4000-8000-000000000001\",\n \"object_name\": \"pole\",\n \"object_display_name\": \"P-1042\",\n \"fields\": [\n {\n \"id\": \"f0000001-0000-4000-8000-000000000001\",\n \"field_id\": \"job_id\",\n \"name\": \"job_id\",\n \"display_name\": \"Job ID\",\n \"type\": \"string\",\n \"stored_value\": \"71ed980b-2269-49fd-b7b8-1e97280f2963\",\n \"modified_at\": \"2026-11-02T18:45:12.000Z\"\n },\n {\n \"id\": \"f0000002-0000-4000-8000-000000000002\",\n \"field_id\": \"pole_tag\",\n \"name\": \"pole_tag\",\n \"display_name\": \"Pole Tag\",\n \"type\": \"string\",\n \"stored_value\": \"P-1042\",\n \"modified_at\": \"2026-11-02T18:45:12.000Z\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"modified_at": "<string>",
"materialization_failures": [
"<string>"
]
}{
"message": "<string>"
}{
"message": "Invalid API Key"
}{
"message": "Invalid API Key"
}{
"message": "Invalid API Key"
}Data Objects
Create a data object
Create a new data object (such as a pole, span, or midspan) from a template. Pass the template’s object_id UUID (not the legacy template row ID) and include a job_id field to attach it to a job. All numeric measurements are stored in meters.
PUT
/
data-object
Create a data object
curl --request PUT \
--url https://api.cloneable.ai/data-object \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"id": "a1b2c3d4-0000-4000-8000-000000000001",
"object_template_id": "c0ffee00-0000-4000-8000-000000000001",
"object_name": "pole",
"object_display_name": "P-1042",
"fields": [
{
"id": "f0000001-0000-4000-8000-000000000001",
"field_id": "job_id",
"name": "job_id",
"display_name": "Job ID",
"type": "string",
"stored_value": "71ed980b-2269-49fd-b7b8-1e97280f2963",
"modified_at": "2026-11-02T18:45:12.000Z"
},
{
"id": "f0000002-0000-4000-8000-000000000002",
"field_id": "pole_tag",
"name": "pole_tag",
"display_name": "Pole Tag",
"type": "string",
"stored_value": "P-1042",
"modified_at": "2026-11-02T18:45:12.000Z"
}
]
}
'import requests
url = "https://api.cloneable.ai/data-object"
payload = {
"id": "a1b2c3d4-0000-4000-8000-000000000001",
"object_template_id": "c0ffee00-0000-4000-8000-000000000001",
"object_name": "pole",
"object_display_name": "P-1042",
"fields": [
{
"id": "f0000001-0000-4000-8000-000000000001",
"field_id": "job_id",
"name": "job_id",
"display_name": "Job ID",
"type": "string",
"stored_value": "71ed980b-2269-49fd-b7b8-1e97280f2963",
"modified_at": "2026-11-02T18:45:12.000Z"
},
{
"id": "f0000002-0000-4000-8000-000000000002",
"field_id": "pole_tag",
"name": "pole_tag",
"display_name": "Pole Tag",
"type": "string",
"stored_value": "P-1042",
"modified_at": "2026-11-02T18:45:12.000Z"
}
]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: 'a1b2c3d4-0000-4000-8000-000000000001',
object_template_id: 'c0ffee00-0000-4000-8000-000000000001',
object_name: 'pole',
object_display_name: 'P-1042',
fields: [
{
id: 'f0000001-0000-4000-8000-000000000001',
field_id: 'job_id',
name: 'job_id',
display_name: 'Job ID',
type: 'string',
stored_value: '71ed980b-2269-49fd-b7b8-1e97280f2963',
modified_at: '2026-11-02T18:45:12.000Z'
},
{
id: 'f0000002-0000-4000-8000-000000000002',
field_id: 'pole_tag',
name: 'pole_tag',
display_name: 'Pole Tag',
type: 'string',
stored_value: 'P-1042',
modified_at: '2026-11-02T18:45:12.000Z'
}
]
})
};
fetch('https://api.cloneable.ai/data-object', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'id' => 'a1b2c3d4-0000-4000-8000-000000000001',
'object_template_id' => 'c0ffee00-0000-4000-8000-000000000001',
'object_name' => 'pole',
'object_display_name' => 'P-1042',
'fields' => [
[
'id' => 'f0000001-0000-4000-8000-000000000001',
'field_id' => 'job_id',
'name' => 'job_id',
'display_name' => 'Job ID',
'type' => 'string',
'stored_value' => '71ed980b-2269-49fd-b7b8-1e97280f2963',
'modified_at' => '2026-11-02T18:45:12.000Z'
],
[
'id' => 'f0000002-0000-4000-8000-000000000002',
'field_id' => 'pole_tag',
'name' => 'pole_tag',
'display_name' => 'Pole Tag',
'type' => 'string',
'stored_value' => 'P-1042',
'modified_at' => '2026-11-02T18:45:12.000Z'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cloneable.ai/data-object"
payload := strings.NewReader("{\n \"id\": \"a1b2c3d4-0000-4000-8000-000000000001\",\n \"object_template_id\": \"c0ffee00-0000-4000-8000-000000000001\",\n \"object_name\": \"pole\",\n \"object_display_name\": \"P-1042\",\n \"fields\": [\n {\n \"id\": \"f0000001-0000-4000-8000-000000000001\",\n \"field_id\": \"job_id\",\n \"name\": \"job_id\",\n \"display_name\": \"Job ID\",\n \"type\": \"string\",\n \"stored_value\": \"71ed980b-2269-49fd-b7b8-1e97280f2963\",\n \"modified_at\": \"2026-11-02T18:45:12.000Z\"\n },\n {\n \"id\": \"f0000002-0000-4000-8000-000000000002\",\n \"field_id\": \"pole_tag\",\n \"name\": \"pole_tag\",\n \"display_name\": \"Pole Tag\",\n \"type\": \"string\",\n \"stored_value\": \"P-1042\",\n \"modified_at\": \"2026-11-02T18:45:12.000Z\"\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<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.put("https://api.cloneable.ai/data-object")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"a1b2c3d4-0000-4000-8000-000000000001\",\n \"object_template_id\": \"c0ffee00-0000-4000-8000-000000000001\",\n \"object_name\": \"pole\",\n \"object_display_name\": \"P-1042\",\n \"fields\": [\n {\n \"id\": \"f0000001-0000-4000-8000-000000000001\",\n \"field_id\": \"job_id\",\n \"name\": \"job_id\",\n \"display_name\": \"Job ID\",\n \"type\": \"string\",\n \"stored_value\": \"71ed980b-2269-49fd-b7b8-1e97280f2963\",\n \"modified_at\": \"2026-11-02T18:45:12.000Z\"\n },\n {\n \"id\": \"f0000002-0000-4000-8000-000000000002\",\n \"field_id\": \"pole_tag\",\n \"name\": \"pole_tag\",\n \"display_name\": \"Pole Tag\",\n \"type\": \"string\",\n \"stored_value\": \"P-1042\",\n \"modified_at\": \"2026-11-02T18:45:12.000Z\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloneable.ai/data-object")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"a1b2c3d4-0000-4000-8000-000000000001\",\n \"object_template_id\": \"c0ffee00-0000-4000-8000-000000000001\",\n \"object_name\": \"pole\",\n \"object_display_name\": \"P-1042\",\n \"fields\": [\n {\n \"id\": \"f0000001-0000-4000-8000-000000000001\",\n \"field_id\": \"job_id\",\n \"name\": \"job_id\",\n \"display_name\": \"Job ID\",\n \"type\": \"string\",\n \"stored_value\": \"71ed980b-2269-49fd-b7b8-1e97280f2963\",\n \"modified_at\": \"2026-11-02T18:45:12.000Z\"\n },\n {\n \"id\": \"f0000002-0000-4000-8000-000000000002\",\n \"field_id\": \"pole_tag\",\n \"name\": \"pole_tag\",\n \"display_name\": \"Pole Tag\",\n \"type\": \"string\",\n \"stored_value\": \"P-1042\",\n \"modified_at\": \"2026-11-02T18:45:12.000Z\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"modified_at": "<string>",
"materialization_failures": [
"<string>"
]
}{
"message": "<string>"
}{
"message": "Invalid API Key"
}{
"message": "Invalid API Key"
}{
"message": "Invalid API Key"
}Authorizations
Body
application/json
Body