diff --git a/packages/worker/src/tests/api/scim/users.ts b/packages/worker/src/tests/api/scim/users.ts index cac310dcba..e1f9616c23 100644 --- a/packages/worker/src/tests/api/scim/users.ts +++ b/packages/worker/src/tests/api/scim/users.ts @@ -95,4 +95,24 @@ export class ScimUsersAPI extends TestAPI { return res.body as ScimUserResponse } + + patch = async ( + { + id, + body, + }: { + id: string + body: ScimUpdateRequest + }, + requestSettings?: Partial + ) => { + const res = await this.#createRequest( + `/api/global/scim/v2/users/${id}`, + "patch", + requestSettings, + body + ) + + return res.body as ScimUser + } }