Skip to content

Change a highlight's note

PATCH/v1/highlights/{highlightId}
Authorization
AuthorizationBearer token (OAuth access token or teakapi_ API key) · headerrequired

Bearer token. Accepts either an OAuth 2.0 access token (obtained via browser sign-in; expires after 1 hour and is refreshable) or a teakapi_ API key.

Path parameters
highlightIdstringrequired
Request body
requiredapplication/json
notestring | nullrequired

The new note, at most 2,000 characters, or null to clear it.

Responses
200

Highlight updated

idstringrequired
cardIdstringrequired
quotestringrequired

The highlighted text.

notestring | nullrequired
anchoredbooleanrequired

False while Teak hasn't found the quote in the card's saved article: an imported highlight waiting for the article, or one the article doesn't have.

sourcestringrequired

Where it was made: in Teak's reader, through this API, or by an import. Clients should accept values they don't know.

Allowed:readerapiimport
createdAtnumberrequired
updatedAtnumberrequired
400

INVALID_INPUT: no note, or a note too long

codestringrequired
errorstringrequired
retryAtnumber | null
404

Highlight not found

codestringrequired
errorstringrequired
retryAtnumber | null
429

RATE_LIMITED

codestringrequired
errorstringrequired
retryAtnumber | null
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PATCH 'https://teakvault.com/api/v1/highlights/string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "note": "string"
}'
Response
{
  "id": "string",
  "cardId": "string",
  "quote": "string",
  "note": "string",
  "anchored": true,
  "source": "reader",
  "createdAt": 0,
  "updatedAt": 0
}

Was this page helpful?