Api / Lessons

PATCH/v1/lessons/:id

Auth: tenant — Status: stable

Update signature and/or lesson_text. Any field omitted is left untouched. agent_id, hit_count, and timestamps are not editable through this endpoint.

Request

Body

FieldTypeDescription
signaturestringNew trigger pattern (≤ 200 chars).
lesson_textstringNew remediation body (≤ 4096 chars).
curl -X PATCH \
  -H "Authorization: Bearer atr_…" \
  -H "Content-Type: application/json" \
  -d '{"lesson_text":"use Authorization-bearing fetch with retry-after backoff"}' \
  http://arbiter.example.com/v1/lessons/14

Response

200 OK

Returns the updated lesson.

Failure modes

StatusWhen
400No mutable fields supplied; field over size limit; invalid JSON.
401Missing / invalid bearer.
404Lesson not found for this tenant.

See also