Feed

Save a negative feed preference

Changed on

Authenticated. Body { subjectType, subjectId, kind }. 201 { success, data: { id, subjectType, subjectId, kind, createdAt } }. Idempotent on (subjectType, subjectId): one row per pair, and a repeat with a different kind updates that row (still 201, returned kind matches the request). subjectId is trimmed, 1–200 characters, no NUL; unknown keys are rejected (400 VALIDATION_ERROR). Cap is 200 rows per user across both surfaces; a new pair at the cap is 409 PREFERENCE_CAP and the oldest row is kept. A replay of an existing pair does not count toward the cap. creative is stored on the promoted surface; every other subjectType is organic. Writes (this POST and DELETE) share a 30/minute/user limit (429 RATE_LIMITED). A missing User row is 404 NOT_FOUND.

post/api/feed/preferences

Request

  • Base URL
    https://app.d-sports.org
  • Auth
    HTTP bearer

Request body

subjectType'author' | 'team' | 'topic' | 'itemType' | 'creative' required
subjectIdstring required
kind'less' | 'never' required

Response

{ success, data: FeedPreference } including idempotent replay; kind matches the request

Changes