* Update Collection * @param data The data for the request. * @param data.collectionId * @param data.requestBody * @returns Collection Successful Response * @throws ApiError
(
data: FlashcardsUpdateCollectionData,
)
| 121 | * @throws ApiError |
| 122 | */ |
| 123 | public static updateCollection( |
| 124 | data: FlashcardsUpdateCollectionData, |
| 125 | ): CancelablePromise<FlashcardsUpdateCollectionResponse> { |
| 126 | return __request(OpenAPI, { |
| 127 | method: 'PUT', |
| 128 | url: '/api/v1/collections/{collection_id}', |
| 129 | path: { |
| 130 | collection_id: data.collectionId, |
| 131 | }, |
| 132 | body: data.requestBody, |
| 133 | mediaType: 'application/json', |
| 134 | errors: { |
| 135 | 422: 'Validation Error', |
| 136 | }, |
| 137 | }) |
| 138 | } |
| 139 | |
| 140 | /** |
| 141 | * Delete Collection |