MCPcopy Create free account
hub / github.com/LeChatErrant/API-template / updateUser

Method updateUser

src/appRequester.ts:77–84  ·  view source on GitHub ↗
(userId: string, payload: any, statusCodeExpected = httpStatus.OK)

Source from the content-addressed store, hash-verified

75 }
76
77 async updateUser(userId: string, payload: any, statusCodeExpected = httpStatus.OK) {
78 const { body } = await this.request
79 .patch(`/users/${userId}`)
80 .send(payload)
81 .expect(statusCodeExpected);
82
83 return body;
84 }
85
86 async deleteUser(userId: string, statusCodeExpected = httpStatus.NO_CONTENT) {
87 await this.request

Callers 2

userRoutes.tsFile · 0.80
user.spec.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected