curl --request PATCH \
--url https://api.kitefrost.ai/v1/projects/{project_id}/seeds/{seed_id} \
--header 'Content-Type: application/json' \
--data '
{
"triage_note": "<string>"
}
'import requests
url = "https://api.kitefrost.ai/v1/projects/{project_id}/seeds/{seed_id}"
payload = { "triage_note": "<string>" }
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({triage_note: '<string>'})
};
fetch('https://api.kitefrost.ai/v1/projects/{project_id}/seeds/{seed_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}/seeds/{seed_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([
'triage_note' => '<string>'
]),
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}/seeds/{seed_id}"
payload := strings.NewReader("{\n \"triage_note\": \"<string>\"\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}/seeds/{seed_id}")
.header("Content-Type", "application/json")
.body("{\n \"triage_note\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kitefrost.ai/v1/projects/{project_id}/seeds/{seed_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 \"triage_note\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"seed_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>",
"state": "raw",
"state_changed_at": "2023-11-07T05:31:56Z",
"promoted_project_id": "<string>",
"triaged_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"triage_note": "<string>",
"dramatic_premise": "<string>",
"dramatic_situation": "<string>",
"central_tension": {},
"human_tension_grounding": {},
"protagonist_shape": {},
"stakes": {},
"tone": "<string>",
"pack_affinity": [
{}
],
"provenance_class": "generated",
"risk_flags": [
"pii-present"
],
"provenance": {},
"quality_scores": {},
"durability_class": "<string>",
"freshness_ts": "2023-11-07T05:31:56Z",
"stale_after": "2023-11-07T05:31:56Z",
"resonance_score": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"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"
}{
"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"
}Transition seed lifecycle state
Apply a lifecycle transition (e.g. raw → triaged, triaged → rejected). Legal edges enforced by the lifecycle store; illegal edges return 409.
curl --request PATCH \
--url https://api.kitefrost.ai/v1/projects/{project_id}/seeds/{seed_id} \
--header 'Content-Type: application/json' \
--data '
{
"triage_note": "<string>"
}
'import requests
url = "https://api.kitefrost.ai/v1/projects/{project_id}/seeds/{seed_id}"
payload = { "triage_note": "<string>" }
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({triage_note: '<string>'})
};
fetch('https://api.kitefrost.ai/v1/projects/{project_id}/seeds/{seed_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}/seeds/{seed_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([
'triage_note' => '<string>'
]),
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}/seeds/{seed_id}"
payload := strings.NewReader("{\n \"triage_note\": \"<string>\"\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}/seeds/{seed_id}")
.header("Content-Type", "application/json")
.body("{\n \"triage_note\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kitefrost.ai/v1/projects/{project_id}/seeds/{seed_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 \"triage_note\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"seed_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>",
"state": "raw",
"state_changed_at": "2023-11-07T05:31:56Z",
"promoted_project_id": "<string>",
"triaged_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"triage_note": "<string>",
"dramatic_premise": "<string>",
"dramatic_situation": "<string>",
"central_tension": {},
"human_tension_grounding": {},
"protagonist_shape": {},
"stakes": {},
"tone": "<string>",
"pack_affinity": [
{}
],
"provenance_class": "generated",
"risk_flags": [
"pii-present"
],
"provenance": {},
"quality_scores": {},
"durability_class": "<string>",
"freshness_ts": "2023-11-07T05:31:56Z",
"stale_after": "2023-11-07T05:31:56Z",
"resonance_score": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"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"
}{
"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"
}Path Parameters
Body
Body of PATCH .../seeds/{seed_id}.
The transition target plus optional metadata. Legal edges are enforced
by :meth:SeedLifecycleStore.transition against the (from, to) matrix
- this route does NOT validate them client-side.
Response
Updated seed record
Response shape for a single seed row.
A thin projection over :class:StorySeedRecord - JSONB columns
surface as dict so dashboards can render them without a second
round-trip; large list views can slim this down later if needed.
The 6 seed lifecycle states.
Source: mechanics/lifecycle-state-machine.md §1 - wire-form values
match the DB CHECK (state IN ('raw',...)) exactly.
raw, triaged, promoted, used, rejected, dead Discrete provenance vocabulary (5 values) per R4 R127-C1.
Source of truth:
docs/design/concepts/green-source-scout/mechanics/provenance-contract.md§2docs/design/concepts/seed-lifecycle-store/mechanics/schema.md(CHECK constraint)docs/design/concepts/story-seed-object/design.md§3.1
Notable absence: there is NO scraped value - the gate enforces by
absence. The DB-level CHECK constraint lists exactly these five.
generated, public-domain, licensed, opt-in, operator-inspired Controlled risk-flag vocabulary (C-SSD-7 contract §2).
ANY flag set on a seed → mandatory human review (cannot auto-promote).
Stored as TEXT[] with a GIN index so the SC8 audit
(WHERE risk_flags @> ARRAY[...]) is a single index scan.
Source: docs/design/concepts/green-source-scout/mechanics/provenance-contract.md §2.
pii-present, sensitive-data, identifiable-real-event, copyrighted-phrasing-detected, platform-restriction, minor-or-sensitive-subject