* Create Card * @param data The data for the request. * @param data.collectionId * @param data.requestBody * @returns Card Successful Response * @throws ApiError
(
data: FlashcardsCreateCardData,
)
| 196 | * @throws ApiError |
| 197 | */ |
| 198 | public static createCard( |
| 199 | data: FlashcardsCreateCardData, |
| 200 | ): CancelablePromise<FlashcardsCreateCardResponse> { |
| 201 | return __request(OpenAPI, { |
| 202 | method: 'POST', |
| 203 | url: '/api/v1/collections/{collection_id}/cards/', |
| 204 | path: { |
| 205 | collection_id: data.collectionId, |
| 206 | }, |
| 207 | body: data.requestBody, |
| 208 | mediaType: 'application/json', |
| 209 | errors: { |
| 210 | 422: 'Validation Error', |
| 211 | }, |
| 212 | }) |
| 213 | } |
| 214 | |
| 215 | /** |
| 216 | * Read Card |