export type DeleteApiCrmExtensionsCardsDev202603AppIdCardIdArgs = {appId: number, cardId: string}; export type DeleteApiCrmExtensionsCardsDev202603AppIdCardIdOptions = {baseUrl?: string | undefined, privateApps?: string | undefined, fetch?: typeof fetch | undefined}; /** * Delete a card * * DELETE /crm/extensions/cards-dev/2026-03/{appId}/{cardId} * * Also accepts auth: developer_hapikey */ export const deleteApiCrmExtensionsCardsDev202603AppIdCardId = async (args: DeleteApiCrmExtensionsCardsDev202603AppIdCardIdArgs, options?: DeleteApiCrmExtensionsCardsDev202603AppIdCardIdOptions) => { const {baseUrl = "https://api.hubapi.com", fetch: fetchFn = fetch, privateApps} = options ?? {} const query = new URLSearchParams() const headers = new Headers() if (privateApps !== undefined) headers.set('authorization', `Bearer ${privateApps}`) const url = `${baseUrl.replace(/\/+$/, '')}/crm/extensions/cards-dev/2026-03/${encodeURIComponent(String(args.appId))}/${encodeURIComponent(String(args.cardId))}${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "DELETE", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };