export type CreateApiCmsBlogs202603AuthorsBatchCreateArgs = {body: BodyInit}; export type CreateApiCmsBlogs202603AuthorsBatchCreateOptions = {baseUrl?: string | undefined, privateApps?: string | undefined, fetch?: typeof fetch | undefined}; /** * Create a batch of Blog Authors * * POST /cms/blogs/2026-03/authors/batch/create * * Also accepts auth: developer_hapikey */ export const createApiCmsBlogs202603AuthorsBatchCreate = async (args: CreateApiCmsBlogs202603AuthorsBatchCreateArgs, options?: CreateApiCmsBlogs202603AuthorsBatchCreateOptions) => { 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 (privateApps !== undefined) headers.set('authorization', `Bearer ${privateApps}`) const url = `${baseUrl.replace(/\/+$/, '')}/cms/blogs/2026-03/authors/batch/create${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() };