v28

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-013593344.3 KB
Products

Update product context based on user feedback

Merge user-supplied feedback into a product's optimization-notes context. The notes have a prose body plus a capped audit trail of recent corrections — both are managed for you. Returns a short summary of what changed; the full notes are not echoed back. Available on all plans.

patch/products/{productId}/context

Path parameters

productIdstring uuid required

The product ID whose context notes should be updated.

The product ID whose context notes should be updated.

Request body

feedbackstring required

The user-provided correction or context, in their words. Pass exactly what the user said (or a faithful summary of multiple turns) — do not pre-edit or generalize.

sourcestring nullable

Optional reference to what triggered this update (e.g. "conversation abc-123"). Pass null or omit if there is no specific source.

Response

Product context updated successfully

productIdstring uuid required

The product ID that was updated.

summarystring required

Short human-readable summary of what changed in the notes.

updatedAtstring required

When the notes were updated (ISO 8601).