export type DeleteApiV3AssetChangesChangeSetsChangeSetIdArgs = {'change-set-id': number}; export type DeleteApiV3AssetChangesChangeSetsChangeSetIdOptions = {baseUrl: string, ApiKey?: string | undefined, fetch?: typeof fetch | undefined}; /** * Confirm asset change notifications. * * DELETE /v3/asset-changes/change-sets/{change-set-id} * * Also accepts auth: OAuth2 */ export const deleteApiV3AssetChangesChangeSetsChangeSetId = async (args: DeleteApiV3AssetChangesChangeSetsChangeSetIdArgs, options: DeleteApiV3AssetChangesChangeSetsChangeSetIdOptions) => { const {baseUrl, fetch: fetchFn = fetch, ApiKey} = options ?? {} const query = new URLSearchParams() const headers = new Headers() if (ApiKey !== undefined) headers.set("Api-Key", ApiKey) const url = `${baseUrl.replace(/\/+$/, '')}/v3/asset-changes/change-sets/${encodeURIComponent(String(args['change-set-id']))}${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 };