Add a note to a pipeline's memory (seen by its next batches)
POST
/v1/studio/memory
const url = 'http://localhost:8300/v1/studio/memory';const options = { method: 'POST', headers: { 'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"pipeline_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","text":"example","key":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8300/v1/studio/memory \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "pipeline_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "text": "example", "key": "example" }'text is trimmed (blank: 422). 404 for a pipeline that is not the caller’s; 409 memory is full (500 items); delete some first.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
pipeline_id
required
string format: uuid
text
required
string
key
string
Example generated
{ "pipeline_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "text": "example", "key": "example"}Responses
Section titled “Responses”The note
Media typeapplication/json
One item of a pipeline’s memory: a judge example (a pick with a note at a judge) or a note (a memory write node’s, or typed here). source says where it came from
object
id
required
string format: uuid
kind
required
string
pipeline_id
required
string format: uuid
key
required
A note’s key; an example’s: its judge node id
string | null
text
required
string
kept
required
An example: the takes picked (deleted ones left out)
Array<object>
object
id
required
string format: uuid
kind
required
string
title
required
string
thumb_url
required
The take’s thumbnail (Take.thumb_url)
string
rejected
required
Array<object>
object
id
required
string format: uuid
kind
required
string
title
required
string
thumb_url
required
The take’s thumbnail (Take.thumb_url)
string
agreed
required
boolean | null
source
required
object
kind
required
string
batch_id
required
string | null format: uuid
row
required
integer | null
node
required
string | null
visit
required
integer | null
created_at
required
string format: date-time
updated_at
required
string format: date-time
Example
{ "kind": "judge_example", "kept": [ { "kind": "image", "thumb_url": "/files/u/7d1e.../runs/3c9a.../0.png?exp=1767225600&sig=ab12" } ], "rejected": [ { "kind": "image", "thumb_url": "/files/u/7d1e.../runs/3c9a.../0.png?exp=1767225600&sig=ab12" } ], "source": { "kind": "pick" }}Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}Not found
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}The resource’s state forbids this
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}Invalid input
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}Retryable
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}