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
| Field | Type | Description |
|---|---|---|
signature | string | New trigger pattern (≤ 200 chars). |
lesson_text | string | New 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
| Status | When |
|---|---|
| 400 | No mutable fields supplied; field over size limit; invalid JSON. |
| 401 | Missing / invalid bearer. |
| 404 | Lesson not found for this tenant. |