Patch endpoint

This commit is contained in:
adrinr 2023-03-13 17:24:36 +01:00
parent 89957f5490
commit 4f9b5a6aea
1 changed files with 20 additions and 0 deletions

View File

@ -95,4 +95,24 @@ export class ScimUsersAPI extends TestAPI {
return res.body as ScimUserResponse
}
patch = async (
{
id,
body,
}: {
id: string
body: ScimUpdateRequest
},
requestSettings?: Partial<RequestSettings>
) => {
const res = await this.#createRequest(
`/api/global/scim/v2/users/${id}`,
"patch",
requestSettings,
body
)
return res.body as ScimUser
}
}