Update fields on a data object
curl --request POST \
--url https://api.cloneable.ai/data-object/{id}/fields \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
[
{
"id": "f0000002-0000-4000-8000-000000000002",
"field_id": "pole_tag",
"stored_value": "P-1042-A",
"modified_at": "2026-11-02T18:50:00.000Z"
},
{
"id": "f0000003-0000-4000-8000-000000000003",
"field_id": "inspection_notes",
"stored_value": "Guy wire tension verified",
"modified_at": "2026-11-02T18:50:00.000Z"
}
]
'import requests
url = "https://api.cloneable.ai/data-object/{id}/fields"
payload = [
{
"id": "f0000002-0000-4000-8000-000000000002",
"field_id": "pole_tag",
"stored_value": "P-1042-A",
"modified_at": "2026-11-02T18:50:00.000Z"
},
{
"id": "f0000003-0000-4000-8000-000000000003",
"field_id": "inspection_notes",
"stored_value": "Guy wire tension verified",
"modified_at": "2026-11-02T18:50:00.000Z"
}
]
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{
id: 'f0000002-0000-4000-8000-000000000002',
field_id: 'pole_tag',
stored_value: 'P-1042-A',
modified_at: '2026-11-02T18:50:00.000Z'
},
{
id: 'f0000003-0000-4000-8000-000000000003',
field_id: 'inspection_notes',
stored_value: 'Guy wire tension verified',
modified_at: '2026-11-02T18:50:00.000Z'
}
])
};
fetch('https://api.cloneable.ai/data-object/{id}/fields', 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/{id}/fields",
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([
[
'id' => 'f0000002-0000-4000-8000-000000000002',
'field_id' => 'pole_tag',
'stored_value' => 'P-1042-A',
'modified_at' => '2026-11-02T18:50:00.000Z'
],
[
'id' => 'f0000003-0000-4000-8000-000000000003',
'field_id' => 'inspection_notes',
'stored_value' => 'Guy wire tension verified',
'modified_at' => '2026-11-02T18:50:00.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/{id}/fields"
payload := strings.NewReader("[\n {\n \"id\": \"f0000002-0000-4000-8000-000000000002\",\n \"field_id\": \"pole_tag\",\n \"stored_value\": \"P-1042-A\",\n \"modified_at\": \"2026-11-02T18:50:00.000Z\"\n },\n {\n \"id\": \"f0000003-0000-4000-8000-000000000003\",\n \"field_id\": \"inspection_notes\",\n \"stored_value\": \"Guy wire tension verified\",\n \"modified_at\": \"2026-11-02T18:50:00.000Z\"\n }\n]")
req, _ := http.NewRequest("POST", 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.post("https://api.cloneable.ai/data-object/{id}/fields")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("[\n {\n \"id\": \"f0000002-0000-4000-8000-000000000002\",\n \"field_id\": \"pole_tag\",\n \"stored_value\": \"P-1042-A\",\n \"modified_at\": \"2026-11-02T18:50:00.000Z\"\n },\n {\n \"id\": \"f0000003-0000-4000-8000-000000000003\",\n \"field_id\": \"inspection_notes\",\n \"stored_value\": \"Guy wire tension verified\",\n \"modified_at\": \"2026-11-02T18:50:00.000Z\"\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloneable.ai/data-object/{id}/fields")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"id\": \"f0000002-0000-4000-8000-000000000002\",\n \"field_id\": \"pole_tag\",\n \"stored_value\": \"P-1042-A\",\n \"modified_at\": \"2026-11-02T18:50:00.000Z\"\n },\n {\n \"id\": \"f0000003-0000-4000-8000-000000000003\",\n \"field_id\": \"inspection_notes\",\n \"stored_value\": \"Guy wire tension verified\",\n \"modified_at\": \"2026-11-02T18:50:00.000Z\"\n }\n]"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"modified_at": "<string>",
"materialization_failures": [
"<string>"
],
"expression_issues": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"message": "<string>"
}{
"message": "Invalid API Key"
}{
"message": "Invalid API Key"
}{
"message": "Invalid API Key"
}Data Objects
Update fields on a data object
Upsert one or more field values on an existing data object. Every write is automatically appended to the object’s immutable field history (GET /data-object/{id}/history). When writing measurement_data, always read-modify-write the full JSON blob and preserve unknown keys (cameraIntrinsics, lensDistortion, referenceLine, scalingData) verbatim.
POST
/
data-object
/
{id}
/
fields
Update fields on a data object
curl --request POST \
--url https://api.cloneable.ai/data-object/{id}/fields \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
[
{
"id": "f0000002-0000-4000-8000-000000000002",
"field_id": "pole_tag",
"stored_value": "P-1042-A",
"modified_at": "2026-11-02T18:50:00.000Z"
},
{
"id": "f0000003-0000-4000-8000-000000000003",
"field_id": "inspection_notes",
"stored_value": "Guy wire tension verified",
"modified_at": "2026-11-02T18:50:00.000Z"
}
]
'import requests
url = "https://api.cloneable.ai/data-object/{id}/fields"
payload = [
{
"id": "f0000002-0000-4000-8000-000000000002",
"field_id": "pole_tag",
"stored_value": "P-1042-A",
"modified_at": "2026-11-02T18:50:00.000Z"
},
{
"id": "f0000003-0000-4000-8000-000000000003",
"field_id": "inspection_notes",
"stored_value": "Guy wire tension verified",
"modified_at": "2026-11-02T18:50:00.000Z"
}
]
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{
id: 'f0000002-0000-4000-8000-000000000002',
field_id: 'pole_tag',
stored_value: 'P-1042-A',
modified_at: '2026-11-02T18:50:00.000Z'
},
{
id: 'f0000003-0000-4000-8000-000000000003',
field_id: 'inspection_notes',
stored_value: 'Guy wire tension verified',
modified_at: '2026-11-02T18:50:00.000Z'
}
])
};
fetch('https://api.cloneable.ai/data-object/{id}/fields', 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/{id}/fields",
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([
[
'id' => 'f0000002-0000-4000-8000-000000000002',
'field_id' => 'pole_tag',
'stored_value' => 'P-1042-A',
'modified_at' => '2026-11-02T18:50:00.000Z'
],
[
'id' => 'f0000003-0000-4000-8000-000000000003',
'field_id' => 'inspection_notes',
'stored_value' => 'Guy wire tension verified',
'modified_at' => '2026-11-02T18:50:00.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/{id}/fields"
payload := strings.NewReader("[\n {\n \"id\": \"f0000002-0000-4000-8000-000000000002\",\n \"field_id\": \"pole_tag\",\n \"stored_value\": \"P-1042-A\",\n \"modified_at\": \"2026-11-02T18:50:00.000Z\"\n },\n {\n \"id\": \"f0000003-0000-4000-8000-000000000003\",\n \"field_id\": \"inspection_notes\",\n \"stored_value\": \"Guy wire tension verified\",\n \"modified_at\": \"2026-11-02T18:50:00.000Z\"\n }\n]")
req, _ := http.NewRequest("POST", 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.post("https://api.cloneable.ai/data-object/{id}/fields")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("[\n {\n \"id\": \"f0000002-0000-4000-8000-000000000002\",\n \"field_id\": \"pole_tag\",\n \"stored_value\": \"P-1042-A\",\n \"modified_at\": \"2026-11-02T18:50:00.000Z\"\n },\n {\n \"id\": \"f0000003-0000-4000-8000-000000000003\",\n \"field_id\": \"inspection_notes\",\n \"stored_value\": \"Guy wire tension verified\",\n \"modified_at\": \"2026-11-02T18:50:00.000Z\"\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloneable.ai/data-object/{id}/fields")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"id\": \"f0000002-0000-4000-8000-000000000002\",\n \"field_id\": \"pole_tag\",\n \"stored_value\": \"P-1042-A\",\n \"modified_at\": \"2026-11-02T18:50:00.000Z\"\n },\n {\n \"id\": \"f0000003-0000-4000-8000-000000000003\",\n \"field_id\": \"inspection_notes\",\n \"stored_value\": \"Guy wire tension verified\",\n \"modified_at\": \"2026-11-02T18:50:00.000Z\"\n }\n]"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"modified_at": "<string>",
"materialization_failures": [
"<string>"
],
"expression_issues": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"message": "<string>"
}{
"message": "Invalid API Key"
}{
"message": "Invalid API Key"
}{
"message": "Invalid API Key"
}Authorizations
Body
application/json
Body