export type BrandRequest = {brandId?: string | undefined}; export type BrandsRequest = {brands?: Array | undefined}; export type DeleteApiV21AccountsAccountIdGroupsGroupIdBrandsArgs = {accountId: string, groupId: string, body: BrandsRequest}; export type DeleteApiV21AccountsAccountIdGroupsGroupIdBrandsOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Deletes brand information from a group. * * DELETE /v2.1/accounts/{accountId}/groups/{groupId}/brands */ export const deleteApiV21AccountsAccountIdGroupsGroupIdBrands = async (args: DeleteApiV21AccountsAccountIdGroupsGroupIdBrandsArgs, options?: DeleteApiV21AccountsAccountIdGroupsGroupIdBrandsOptions) => { const {baseUrl = "https://www.docusign.net/restapi", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") headers.set('accept', "*/*") const url = `${baseUrl.replace(/\/+$/, '')}/v2.1/accounts/${encodeURIComponent(String(args.accountId))}/groups/${encodeURIComponent(String(args.groupId))}/brands${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "DELETE", 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 res.blob() };