Notifications

Set one event type's channels (team-wide default, or a project override)

put/notifications/preferences

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/notifications/preferences
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Query parameters

orgIdstring

Organization id (required when you belong to several)

Request body

eventType'deployment_failed' | 'deployment_succeeded' | 'domain_verified' | 'domain_verification_failing' | 'certificate_problem' | 'import_finished' | 'import_failed' | 'import_needs_input' | 'uptime_down' | 'uptime_recovered' | 'email_sending_approved' | 'email_sending_denied' | 'builder_publish_finished' | 'builder_site_check' | 'team_invitation_accepted' | 'webhook_auto_disabled' | 'backup_failed' | 'billing_suspended' | 'billing_unsuspended' | 'capacity_alert' | 'server_alert' | 'usage_alert' | 'domain_order' | 'domain_registration' | 'project_auto_stopped' | 'billing_operator_alert' | 'project_alert' | 'support_reply' | 'support_ticket' | 'trial_ending' | 'trial_ended' | 'trial_site_cap' | 'trial_pausing' | 'trial_paused' | 'trial_resumed' | 'trial_retention_warning' | 'usage_cap_reached' required
projectIdstring uuid nullable
emailboolean required
inAppboolean required

Response

Updated

language'en' | 'sv' | 'de' | 'fr' | 'es' | 'pt' | 'id' | 'da' | 'nb' required

used to render this user's email notifications

Changes

No recorded changes to this operation across all 1 revision of this API.