* Start Practice Session * Start a new practice session for a collection * @param data The data for the request. * @param data.requestBody * @returns PracticeSession Successful Response * @throws ApiError
(
data: FlashcardsStartPracticeSessionData,
)
| 296 | * @throws ApiError |
| 297 | */ |
| 298 | public static startPracticeSession( |
| 299 | data: FlashcardsStartPracticeSessionData, |
| 300 | ): CancelablePromise<FlashcardsStartPracticeSessionResponse> { |
| 301 | return __request(OpenAPI, { |
| 302 | method: 'POST', |
| 303 | url: '/api/v1/practice-sessions', |
| 304 | body: data.requestBody, |
| 305 | mediaType: 'application/json', |
| 306 | errors: { |
| 307 | 422: 'Validation Error', |
| 308 | }, |
| 309 | }) |
| 310 | } |
| 311 | |
| 312 | /** |
| 313 | * List Practice Sessions |