MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / updateCollection

Method updateCollection

frontend/src/client/sdk.gen.ts:123–138  ·  view source on GitHub ↗

* Update Collection * @param data The data for the request. * @param data.collectionId * @param data.requestBody * @returns Collection Successful Response * @throws ApiError

(
    data: FlashcardsUpdateCollectionData,
  )

Source from the content-addressed store, hash-verified

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

Callers 1

updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected