export type CreateApiCmsBlogs202603AuthorsBatchReadArgs = {archived?: boolean | undefined, body: BodyInit}; export type CreateApiCmsBlogs202603AuthorsBatchReadOptions = {baseUrl?: string | undefined, privateApps?: string | undefined, fetch?: typeof fetch | undefined}; /** * Retrieve a batch of Blog Authors * * POST /cms/blogs/2026-03/authors/batch/read * * Also accepts auth: developer_hapikey */ export const createApiCmsBlogs202603AuthorsBatchRead = async (args: CreateApiCmsBlogs202603AuthorsBatchReadArgs, options?: CreateApiCmsBlogs202603AuthorsBatchReadOptions) => { const {baseUrl = "https://api.hubapi.com", fetch: fetchFn = fetch, privateApps} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "*/*") headers.set('accept', "*/*") if (args.archived != null) query.append("archived", String(args.archived)) if (privateApps !== undefined) headers.set('authorization', `Bearer ${privateApps}`) const url = `${baseUrl.replace(/\/+$/, '')}/cms/blogs/2026-03/authors/batch/read${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "POST", headers, body: args.body}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return res.blob() };