Notifications

Update one notification preference cell

Changed on

Instant-save toggle for one (event_type, channel) cell — last-write-wins, no lock (QA Refinement Decision 2). mentions is deliberately excluded from event_type — a request naming it fails validation (validation_failed, 422), on top of migration 0062's own DB-level lock.

patch/api/v1/notification-preferences

Request

  • Base URL: http://localhost:3000
  • URL: http://localhost:3000/api/v1/notification-preferences
  • Auth: one of:
    • API key in cookie sb-fmbpikzpkafptqximhxn-auth-token
    • HTTP bearer

Request body

event_type'run_lifecycle' | 'bug_lifecycle' required
channel'in_app' | 'email' required
enabledboolean required

Response

The cell is now persisted with this value.

Changes

    • warning

      added the new test_outside_plan_project enum value to the / response property for the response status

    • warning

      added the new test_outside_plan_project enum value to the / response property for the response status

    • info

      removed the test_outside_plan_project enum value from the / response property for the response status

    • info

      removed the test_outside_plan_project enum value from the / response property for the response status