Company Settings

Update weekly summary email settings (upsert)

Demo-parity mutation for an explicitly allowlisted active or test company. Requires company admin or owner; /qa callers additionally require the test-only QA boundary.

put/companies/{companyId}/weekly-email/settings

Request

  • Base URL
    https://api.medianfi.com/api/v1
  • Auth
    HTTP bearer

Path parameters

companyId, string uuid required

Headers

X-Median-App-Surface, 'qa'

Optional customer-app bundle marker for production-promoted demo-parity routes. Production customer calls omit this header. When present, qa selects the QA bundle and the server additionally requires an allowlisted test company with persisted client_status=test.

Request body

UpdateWeeklyEmailSettingsInput required
enabled, boolean
cadence, 'weekly'
sendDay, 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday'
sendTime, string
timezone, string

IANA time zone, e.g. America/New_York. Rejected with 422 when the zone is unknown.

businessModel, 'software' | 'services' | 'digital'

Deprecated (#1967): the company's stored business model decides the copy variant; this value is only the fallback when the company model cannot be read or is unset.

intro, string nullable
enabledSections, string[]

Response

Weekly-email settings updated

WeeklyEmailSettingsResponse required
data, WeeklyEmailSettings

Example response

{
  "data": {
    "timezone": "America/New_York"
  }
}

Changes

No recorded changes to this operation across all 110 revisions of this API.