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

Method updateUser

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

* Update User * Update a user. * @param data The data for the request. * @param data.userId * @param data.requestBody * @returns UserPublic Successful Response * @throws ApiError

(data: UsersUpdateUserData)

Source from the content-addressed store, hash-verified

396 * @throws ApiError
397 */
398 public static updateUser(data: UsersUpdateUserData): CancelablePromise<UsersUpdateUserResponse> {
399 return __request(OpenAPI, {
400 method: 'PATCH',
401 url: '/api/v1/users/{user_id}',
402 path: {
403 user_id: data.userId
404 },
405 body: data.requestBody,
406 mediaType: 'application/json',
407 errors: {
408 422: 'Validation Error'
409 }
410 });
411 }
412
413 /**
414 * Delete User

Callers 1

EditUserFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected