* Create Collection * @param data The data for the request. * @param data.requestBody * @returns Collection Successful Response * @throws ApiError
(
data: FlashcardsCreateCollectionData,
)
| 77 | * @throws ApiError |
| 78 | */ |
| 79 | public static createCollection( |
| 80 | data: FlashcardsCreateCollectionData, |
| 81 | ): CancelablePromise<FlashcardsCreateCollectionResponse> { |
| 82 | return __request(OpenAPI, { |
| 83 | method: 'POST', |
| 84 | url: '/api/v1/collections/', |
| 85 | body: data.requestBody, |
| 86 | mediaType: 'application/json', |
| 87 | errors: { |
| 88 | 422: 'Validation Error', |
| 89 | }, |
| 90 | }) |
| 91 | } |
| 92 | |
| 93 | /** |
| 94 | * Read Collection |