export type SimplePublicObjectId = {id: string}; export type BatchInputSimplePublicObjectId = {inputs: Array}; export type CreateApiCrmObjects202609MeetingsBatchArchiveArgs = {body: BatchInputSimplePublicObjectId}; export type CreateApiCrmObjects202609MeetingsBatchArchiveOptions = {baseUrl?: string | undefined, oauth2?: string | undefined, fetch?: typeof fetch | undefined}; /** * Archive a batch of meetings by ID * * POST /crm/objects/2026-09/meetings/batch/archive * * Also accepts auth: oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2 */ export const createApiCrmObjects202609MeetingsBatchArchive = async (args: CreateApiCrmObjects202609MeetingsBatchArchiveArgs, options?: CreateApiCrmObjects202609MeetingsBatchArchiveOptions) => { const {baseUrl = "https://api.hubapi.com", fetch: fetchFn = fetch, oauth2} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") if (oauth2 !== undefined) headers.set('authorization', `Bearer ${oauth2}`) const url = `${baseUrl.replace(/\/+$/, '')}/crm/objects/2026-09/meetings/batch/archive${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "POST", headers, body: JSON.stringify(args.body)}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };