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

Method createCollection

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

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

(
    data: FlashcardsCreateCollectionData,
  )

Source from the content-addressed store, hash-verified

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

Callers 1

createMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected