---
title: "Upsert trend preference vector from explicit interests and behavior events"
method: POST
path: "/api/alerts/preferences"
tags: ["trend-alerts", "personalization"]
---

# Upsert trend preference vector from explicit interests and behavior events

`POST /api/alerts/preferences`

## Request body

- object
  - `actorId` string, required
  - `followerCount` integer
  - `aggressiveness` number
  - `explicitNiches` string[]
  - `explicitTopics` string[]
  - `explicitRegions` string[]
  - `explicitSources` string[]
  - `event` object
    - `action` 'alert_opened' | 'alert_marked_relevant' | 'alert_marked_irrelevant' | 'alert_marked_relevant' | 'topic_followed' | 'topic_muted' | 'create_from_alert'
    - `niche` string
    - `topic` string
    - `region` string
    - `source` string

## Response `201`

Updated preference vector payload

## Other responses

- `400` — Validation error

---

[API](https://skmtc.net/memesio/apis/memesio-api-contracts.md) · [All operations](https://skmtc.net/memesio/apis/memesio-api-contracts/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/memesio/memesio-api-contracts/revisions/826e6edbf294/schema)
