MCPcopy
hub / github.com/fastapi/full-stack-fastapi-template / updateItem

Method updateItem

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

* Update Item * Update an item. * @param data The data for the request. * @param data.id * @param data.requestBody * @returns ItemPublic Successful Response * @throws ApiError

(data: ItemsUpdateItemData)

Source from the content-addressed store, hash-verified

80 * @throws ApiError
81 */
82 public static updateItem(data: ItemsUpdateItemData): CancelablePromise<ItemsUpdateItemResponse> {
83 return __request(OpenAPI, {
84 method: 'PUT',
85 url: '/api/v1/items/{id}',
86 path: {
87 id: data.id
88 },
89 body: data.requestBody,
90 mediaType: 'application/json',
91 errors: {
92 422: 'Validation Error'
93 }
94 });
95 }
96
97 /**
98 * Delete Item

Callers 1

EditItemFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected