export type UpdateApiV1NotificationControlCenterAtRiskAlertsOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * PUT /v1/notification-control-center/at-risk-alerts */ export const updateApiV1NotificationControlCenterAtRiskAlerts = async (options?: UpdateApiV1NotificationControlCenterAtRiskAlertsOptions) => { const {baseUrl = "https://api.printhiv3d.com", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() const url = `${baseUrl.replace(/\/+$/, '')}/v1/notification-control-center/at-risk-alerts${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "PUT", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };