export type Apiv2organizationskillsidrelationshipsskillreviewgroupsData = {type?: string | undefined, id?: string | undefined}; export type RelationshipsSkillreviewgroupsBody1 = {data?: Array | undefined}; export type DeleteApiApiV2OrganizationSkillsIdRelationshipsSkillReviewGroupsArgs = {id: string, body: RelationshipsSkillreviewgroupsBody1}; export type DeleteApiApiV2OrganizationSkillsIdRelationshipsSkillReviewGroupsOptions = {baseUrl?: string | undefined, bearerAuth?: string | undefined, fetch?: typeof fetch | undefined}; /** * Delete Skill Review Groups for a Specific Skill * * DELETE /api/v2/organization-skills/{id}/relationships/skill-review-groups */ export const deleteApiApiV2OrganizationSkillsIdRelationshipsSkillReviewGroups = async (args: DeleteApiApiV2OrganizationSkillsIdRelationshipsSkillReviewGroupsArgs, options?: DeleteApiApiV2OrganizationSkillsIdRelationshipsSkillReviewGroupsOptions) => { const {baseUrl = "https://api.betatest.degreed.com", fetch: fetchFn = fetch, bearerAuth} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") if (bearerAuth !== undefined) headers.set('authorization', `Bearer ${bearerAuth}`) const url = `${baseUrl.replace(/\/+$/, '')}/api/v2/organization-skills/${encodeURIComponent(String(args.id))}/relationships/skill-review-groups${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 undefined };