Skip to content
REST API

Update a term

PATCH
/sets/{setId}/terms/{termId}

Changes the term, definition or hints. Only the fields you send change. The term keeps its id, image and review history.

Required scopes: sets:update

Authorization

AuthorizationBearer <token>

In: header

Path Parameters

setId*string

Study set id, scoped to the key's user.

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
termId*string

Term id within that set.

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Send only the fields to change. An omitted field stays as it is.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/sets/497f6eca-6276-4993-bfeb-53cbbbba6f08/terms/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
{  "data": {    "id": "2a1b0c9d-8e7f-4a6b-9c5d-4e3f2a1b0c9d",    "term": "tener (yo)",    "definition": "tuve",    "hints": [      "irregular stem tuv-"    ]  }}