Skip to content
Snippets Groups Projects
Commit dfe2aab0 authored by Victor Ekholt Gunrell Kaste's avatar Victor Ekholt Gunrell Kaste
Browse files

feat: Added regenerate challenge method

parent 88dfdbbd
No related branches found
No related tags found
1 merge request!92Feat/regenerate challenge
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment