---
title: "Update product context based on user feedback"
method: PATCH
path: "/products/{productId}/context"
tags: ["Products"]
---

# Update product context based on user feedback

`PATCH /products/{productId}/context`

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.

## Path parameters

- `productId` string, uuid, required — The product ID whose context notes should be updated.

## Request body

- UpdateProductContextRequest
  - `feedback` string, 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.
  - `source` string, nullable — Optional reference to what triggered this update (e.g. "conversation abc-123"). Pass null or omit if there is no specific source.

## Response `200`

Product context updated successfully

- UpdateProductContextResponse
  - `productId` string, uuid, required — The product ID that was updated.
  - `summary` string, required — Short human-readable summary of what changed in the notes.
  - `updatedAt` string, required — When the notes were updated (ISO 8601).

## Other responses

- `400` — Invalid request - validation error
- `404` — Product not found
- `500` — Server error

---

[API](https://skmtc.net/greenflash-ai/apis/greenflash-api-reference.md) · [All operations](https://skmtc.net/greenflash-ai/apis/greenflash-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/greenflash-ai/greenflash-api-reference/versions/c566e560677d/schema)
