* Delete Collection * @param data The data for the request. * @param data.collectionId * @returns void Successful Response * @throws ApiError
(
data: FlashcardsDeleteCollectionData,
)
| 145 | * @throws ApiError |
| 146 | */ |
| 147 | public static deleteCollection( |
| 148 | data: FlashcardsDeleteCollectionData, |
| 149 | ): CancelablePromise<FlashcardsDeleteCollectionResponse> { |
| 150 | return __request(OpenAPI, { |
| 151 | method: 'DELETE', |
| 152 | url: '/api/v1/collections/{collection_id}', |
| 153 | path: { |
| 154 | collection_id: data.collectionId, |
| 155 | }, |
| 156 | errors: { |
| 157 | 422: 'Validation Error', |
| 158 | }, |
| 159 | }) |
| 160 | } |
| 161 | |
| 162 | /** |
| 163 | * Read Cards |