Watchlist Terms (Update)

POST https://api.hivemoderation.com/api/v1/watchlist/update

Update the metadata (e.g. notes) of one or more existing terms in a watchlist.


Example Request

curl -X POST https://api.hivemoderation.com/api/v1/watchlist/update \
  -H "Authorization: token <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "watchlist": "my-watchlist",
    "terms": [
      { "term": "example term", "notes": "Updated context for this term." }
    ]
  }'

Request

Headers

HeaderTypeRequiredDescription
AuthorizationstringYesAPI key from Hive Moderation Dashboard (per-application).
Content-TypestringYesSubmit JSON data in the request body.

Request Body Parameters

ParameterTypeRequiredDescription
watchliststringYesThe unique API field name identifying the target watchlist.
termsarrayYesArray of term objects to be updated (see Term Object below).

Term Object

FieldTypeRequiredDescription
termstringYes

The term to update. Must already exist in the watchlist.

Maximum 1024 characters.

notesstringNo

Updated notes for this term. Set to null to clear existing notes.

Maximum 1024 characters.

Notes

  • This endpoint only updates existing terms. Terms not found in the watchlist are returned under non_existent_terms and are not created.
  • Terms are normalized to lowercase before matching.

Responses

Response Fields

FieldTypeAlways ReturnedDescription
messagestringYesHuman-readable result summary.
watchliststringYesThe watchlist API field name provided in the request.
updated_termsarrayYesTerm objects successfully updated in the watchlist.
non_existent_termsarrayYesTerm objects that were not found in the watchlist.
failed_termsarrayYesTerms that could not be processed due to an error.

Example Success (200 OK)

{
  "message": "Successfully updated list.",
  "watchlist": "my-watchlist",
  "updated_terms": [
    { "term": "example term", "notes": "Updated context for this term." }
  ],
  "non_existent_terms": [],
  "failed_terms": []
}

Example Error Response (400 Bad Request)

{
  "error": true,
  "status": 400,
  "error_code": "PARAM_REQUIRED",
  "message": "watchlist is required.",
  "show_alert": false
}

Common Errors

Status CodeError CodeDescription
400PARAM_REQUIREDMissing required parameter or invalid type.
403INVALID_API_KEYNo application matches the provided API key.