Skip to Content
Heuristic documentation

Change a product's name, description, knowledge base address or Report by (product Owners)

PATCH
/v1/products/{productId}

Send the fields to change; the others stay as they are. It answers the product with reporting, as the one-product read does. A new knowledge base address is read the next time the knowledge base is read (start_knowledge_base_read). Setting the same values again changes nothing, so a retry is safe.

Authorization

headerAuthorizationBearer <token>

An OAuth access token for the person who allowed your tool: register a client, then the authorization code flow with PKCE (S256). Send it as Authorization: Bearer <token> on every route that needs a signed-in person. Calls with a token are limited per person, across all their apps, to 120 calls a minute and 10,000 a UTC day; calls that start AI runs or knowledge base reads (creating an organization, starting a knowledge base read, rebuilding categories, retrying topics or rechecking) also to 10 a minute and 200 a UTC day. Over a limit a call answers 429 rate_limited with Retry-After and details.retryAfter in seconds, and changes nothing.

Path Parameters

productId*string

A Heuristic id: a uuid, in any case (it is read in lower case). Anything else answers 400 validation_error.

Formatuuid

Request Body

application/json
  1. body

The details to change; send at least one. Fields left out stay as they are.

name?string

The product's name, 1 to 100 characters, on one line.

Match^[^\u0000-\u001f\u007f-\u009f\u2028\u2029]*$
Length1 <= length <= 100
description?string

What the product is, up to 500 characters.

Match^[^\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f-\u009f\u2028\u2029]*$
Lengthlength <= 500
knowledgeBaseUrl?string

The product's public documentation site, an http or https address such as https://docs.example.com; never a local or private address. Heuristic reads it to find the product's features.

Match^[^\s\u0000-\u001f\u007f-\u009f]+$
Lengthlength <= 2048
reportBy?string

What every trend and change of the product's feedback reports by: week, month, quarter, or auto (the default), which picks the unit from the product's feedback volume.

Value in"auto""week""month""quarter"

Response Body

The changed product

application/json
  1. response
data*
meta*
Example Request
curl -X PATCH 'https://staging.heuristic.app/v1/products/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Authorization: Bearer <access token>' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "data": {    "id": "string",    "organizationId": "string",    "name": "string",    "description": "string",    "knowledgeBaseUrl": "string",    "access": "owner",    "createdAt": "string",    "archivedAt": "string",    "deletedAt": "string",    "restorableUntil": "string",    "reporting": {      "reportBy": "auto",      "unit": "week",      "reason": "string"    }  },  "meta": {    "property1": null,    "property2": null  }}