Skip to main content
PATCH
Rewrite a learning

Authorizations

X-API-Key
string
header
required

Path Parameters

learning_id
string<uuid>
required

Body

application/json

A learning rewritten by hand.

text
string
required

The rule, one line; line breaks are folded into spaces.

Required string length: 1 - 300

Response

Successful Response

One learning: a one-line rule the agent follows on every output.

batch_id
string<uuid> | null
required

The release that wrote it, for a learning split from a long prompt (simplified) or carried over from old feedback (carried): undoing that event (POST /agent-learnings/thumbs-downs/{event_id}/revert/ with this id) is Put back the original prompt. Null for a learning a thumbs down taught.

created_at
string<date-time>
required
created_by_user_id
string | null
required

Who taught it, or null for a release.

id
string<uuid>
required
last_event_id
string<uuid> | null
required

The latest thumbs down that wrote it, for Undo (POST /agent-learnings/thumbs-downs/{event_id}/revert/); null when none did or the learning was only read.

source
enum<string>
required

Where it was taught: the surface whose thumbs down added it, simplified when a long prompt was split into a goal and learnings, carried when old feedback was carried over.

Available options:
table_cells,
agent_preview,
task,
writing_preview,
reply_draft,
sent_message,
simplified,
carried,
template
text
string
required

The rule, one line.

updated_at
string<date-time>
required