Skip to main content
PUT
/
mentions
/
customEnrichments
Add enrichments
curl --request PUT \
  --url https://api.peakmetrics.com/mentions/customEnrichments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "url": "https://example.com/news/article-123",
    "enrichment_id": 1681,
    "value": "Substantiated"
  },
  {
    "url": "https://example.com/news/article-456",
    "enrichment_id": 1681,
    "value": "Mixed"
  }
]
'
{
  "message": "Enrichments are queued up for processing",
  "count": 2
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
Maximum array length: 100
url
string<uri>
required

The URL of the mention to enrich. The mention must already exist in PeakMetrics. Both standard and custom channel mentions are supported.

Example:

"https://example.com/news/article-123"

enrichment_id
integer
required

The identifier of the custom enrichment, as returned by GET /customEnrichments. The custom enrichment must be accessible to the authenticated team.

Example:

1681

value
string
required

The value to write for this enrichment on this mention. Any string is accepted; values outside the custom enrichment's current constraints.enum are recorded and will appear in future GET /customEnrichments responses as new categories.

Example:

"Substantiated"

Response

All updates passed validation and have been queued for processing.

message
string
Example:

"Enrichments are queued up for processing"

count
integer

The number of enrichment updates accepted.

Example:

2