diff --git a/src/api/services/GoalService.ts b/src/api/services/GoalService.ts index b3bfa72d953cab2252919fc7ab21566db845e51f..bb0e011a19f29bf43f333704d9dbe22798a4645b 100644 --- a/src/api/services/GoalService.ts +++ b/src/api/services/GoalService.ts @@ -2,6 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ +import type { ChallengeDTO } from '../models/ChallengeDTO'; import type { CreateGoalDTO } from '../models/CreateGoalDTO'; import type { GoalDTO } from '../models/GoalDTO'; import type { MarkChallengeDTO } from '../models/MarkChallengeDTO'; @@ -78,6 +79,23 @@ export class GoalService { mediaType: 'application/json', }); } + /** + * @returns ChallengeDTO OK + * @throws ApiError + */ + public static regenerateChallenge({ + id, + }: { + id: number, + }): CancelablePromise<ChallengeDTO> { + return __request(OpenAPI, { + method: 'PATCH', + url: '/api/goals/challenge/{id}', + path: { + 'id': id, + }, + }); + } /** * @returns GoalDTO OK * @throws ApiError