curl --request PATCH \
--url https://api.kitefrost.ai/v1/projects/{project_id}/game-narrative/items/{entity_id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "Gideon (retired)",
"properties": {
"personality": "weary, contemplative"
},
"properties_merge": true
}
'import requests
url = "https://api.kitefrost.ai/v1/projects/{project_id}/game-narrative/items/{entity_id}"
payload = {
"name": "Gideon (retired)",
"properties": { "personality": "weary, contemplative" },
"properties_merge": True
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Gideon (retired)',
properties: {personality: 'weary, contemplative'},
properties_merge: true
})
};
fetch('https://api.kitefrost.ai/v1/projects/{project_id}/game-narrative/items/{entity_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.kitefrost.ai/v1/projects/{project_id}/game-narrative/items/{entity_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Gideon (retired)',
'properties' => [
'personality' => 'weary, contemplative'
],
'properties_merge' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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.kitefrost.ai/v1/projects/{project_id}/game-narrative/items/{entity_id}"
payload := strings.NewReader("{\n \"name\": \"Gideon (retired)\",\n \"properties\": {\n \"personality\": \"weary, contemplative\"\n },\n \"properties_merge\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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.patch("https://api.kitefrost.ai/v1/projects/{project_id}/game-narrative/items/{entity_id}")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Gideon (retired)\",\n \"properties\": {\n \"personality\": \"weary, contemplative\"\n },\n \"properties_merge\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kitefrost.ai/v1/projects/{project_id}/game-narrative/items/{entity_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Gideon (retired)\",\n \"properties\": {\n \"personality\": \"weary, contemplative\"\n },\n \"properties_merge\": true\n}"
response = http.request(request)
puts response.read_body{
"created_at": "2026-03-24T10:01:00Z",
"external_id": "blacksmith-gideon",
"id": "ent_xyz789",
"name": "Gideon the Blacksmith",
"project_id": "a1b2c3d4-1111-2222-3333-444444444444",
"properties": {
"role": "merchant"
},
"type": "npc",
"updated_at": "2026-03-24T10:01:00Z"
}{
"error": "Unauthorized",
"code": "unauthorized",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"message": "No valid API key was supplied.",
"doc_url": "https://docs.kitefrost.ai/errors/unauthorized"
}{
"error": "Forbidden",
"code": "forbidden",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"message": "Your API key does not have the required scope.",
"doc_url": "https://docs.kitefrost.ai/errors/forbidden"
}{
"error": "Not found",
"code": "not_found",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"message": "The requested resource does not exist.",
"doc_url": "https://docs.kitefrost.ai/errors/not_found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"error": "Rate limit exceeded",
"code": "rate_limited",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"message": "You have exceeded the rate limit for your plan.",
"doc_url": "https://docs.kitefrost.ai/errors/rate_limited"
}{
"error": "Internal server error",
"code": "internal_error",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"message": "An unexpected error occurred.",
"doc_url": "https://docs.kitefrost.ai/errors/internal_error"
}Update a item by entity_id
Partial update. Body may include name and/or properties (with optional properties_merge). The canonical type is fixed by the URL and cannot be changed via PATCH. Returns 404 if the row exists but is not of canonical type ‘item’.
curl --request PATCH \
--url https://api.kitefrost.ai/v1/projects/{project_id}/game-narrative/items/{entity_id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "Gideon (retired)",
"properties": {
"personality": "weary, contemplative"
},
"properties_merge": true
}
'import requests
url = "https://api.kitefrost.ai/v1/projects/{project_id}/game-narrative/items/{entity_id}"
payload = {
"name": "Gideon (retired)",
"properties": { "personality": "weary, contemplative" },
"properties_merge": True
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Gideon (retired)',
properties: {personality: 'weary, contemplative'},
properties_merge: true
})
};
fetch('https://api.kitefrost.ai/v1/projects/{project_id}/game-narrative/items/{entity_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.kitefrost.ai/v1/projects/{project_id}/game-narrative/items/{entity_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Gideon (retired)',
'properties' => [
'personality' => 'weary, contemplative'
],
'properties_merge' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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.kitefrost.ai/v1/projects/{project_id}/game-narrative/items/{entity_id}"
payload := strings.NewReader("{\n \"name\": \"Gideon (retired)\",\n \"properties\": {\n \"personality\": \"weary, contemplative\"\n },\n \"properties_merge\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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.patch("https://api.kitefrost.ai/v1/projects/{project_id}/game-narrative/items/{entity_id}")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Gideon (retired)\",\n \"properties\": {\n \"personality\": \"weary, contemplative\"\n },\n \"properties_merge\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kitefrost.ai/v1/projects/{project_id}/game-narrative/items/{entity_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Gideon (retired)\",\n \"properties\": {\n \"personality\": \"weary, contemplative\"\n },\n \"properties_merge\": true\n}"
response = http.request(request)
puts response.read_body{
"created_at": "2026-03-24T10:01:00Z",
"external_id": "blacksmith-gideon",
"id": "ent_xyz789",
"name": "Gideon the Blacksmith",
"project_id": "a1b2c3d4-1111-2222-3333-444444444444",
"properties": {
"role": "merchant"
},
"type": "npc",
"updated_at": "2026-03-24T10:01:00Z"
}{
"error": "Unauthorized",
"code": "unauthorized",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"message": "No valid API key was supplied.",
"doc_url": "https://docs.kitefrost.ai/errors/unauthorized"
}{
"error": "Forbidden",
"code": "forbidden",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"message": "Your API key does not have the required scope.",
"doc_url": "https://docs.kitefrost.ai/errors/forbidden"
}{
"error": "Not found",
"code": "not_found",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"message": "The requested resource does not exist.",
"doc_url": "https://docs.kitefrost.ai/errors/not_found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"error": "Rate limit exceeded",
"code": "rate_limited",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"message": "You have exceeded the rate limit for your plan.",
"doc_url": "https://docs.kitefrost.ai/errors/rate_limited"
}{
"error": "Internal server error",
"code": "internal_error",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"message": "An unexpected error occurred.",
"doc_url": "https://docs.kitefrost.ai/errors/internal_error"
}Body
PATCH /v1/projects/{project_id}/{pack}/{term}/{entity_id} - partial update.
All fields are optional; only those present in the body are applied. The canonical type is fixed by the URL and cannot be changed via PATCH - to convert an entity to a different type, delete and re-create.
New display name. Omit to leave unchanged.
1 - 200New properties. When properties_merge=True (default false), supplied keys are shallow-merged over the existing properties; when false, the entire properties object is replaced.
If true, properties is shallow-merged onto the existing object; if false (default), it replaces the existing object.
Response
Successful Response
Entity resource representation.
Entity ID (ent_ prefixed)
Parent project ID
Developer-provided stable identifier
Entity type
Display name
Creation timestamp (UTC)
Last update timestamp (UTC)
Domain-specific properties
KG temporal anchor: first valid sequence
KG temporal anchor: last valid sequence (null = current)
System ID (ent_ prefixed) of the parent entity. None for root entities.
Materialized path string for subtree queries. Format: '/{external_id}' for roots, '/{ancestor}/{...}/{own_ext_id}' for children. None for entities that have never had a parent set.
Link that caused this shadow entity. None for native entities.
Originating entity ID in the source project. None for native entities.
Originating project ID. None for native entities.