Edit a custom enrichment
Renames a custom enrichment and/or replaces its option list, and returns the
updated definition in the same shape as GET /customEnrichments.
Full replace, not a diff
constraints.enum is required and fully replaces the currently listed
options: whatever array you submit becomes the complete set of listed options
going forward. Send the full intended list every time — ["A", "B"] followed by
["B", "C"] leaves only B and C listed. [] removes every option.
This works the same way for categorical and multivalue_categorical
enrichments — both carry an option list. For integer enrichments
constraints.enum must be exactly []; editing an integer enrichment is limited
to its name.
Restoring options
Omitting a previously listed option delists it without deleting the values already written to mentions.
Re-adding a previously removed option restores it, together with the
mentions tagged under it — as long as it is spelled exactly as before, including
capitalization and spacing. An option that differs by case or spacing is
treated as a new, separate option ("Gold" and "gold" are two distinct
options).
Self-registration still applies
This endpoint controls the explicitly managed list at the moment it is called.
Values pushed with PUT /mentions/customEnrichments that are not yet listed are
still registered automatically, exactly as before, and GET /customEnrichments
continues to reflect the current full set of listed options however they arrived.
type cannot be changed.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The enrichment_id from GET /customEnrichments.
Body
Response
The updated custom enrichment, reflecting the replaced option list.
A custom enrichment definition, as listed by GET /customEnrichments.
The unique identifier. Use it as enrichment_id when pushing values with PUT /mentions/customEnrichments.
1681
The display name.
"Disinformation Analysis"
The data type of the enrichment's value. Fixed at creation.
categorical, multivalue_categorical, integer "categorical"