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.
Removing options — prefer adding to the list
Omitting a previously listed option removes it from the list. It does not delete the values already written to mentions, but options are currently stored by their position in the list, so removing an option can relabel mentions tagged with the options that followed it. Until that is fixed, add options rather than remove them; to retire an option, leave it listed and stop writing it.
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"