1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

Patch endpoint

This commit is contained in:
adrinr 2023-03-13 17:24:36 +01:00
parent 89957f5490
commit 4f9b5a6aea

View file

@ -95,4 +95,24 @@ export class ScimUsersAPI extends TestAPI {
return res.body as ScimUserResponse 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
}
} }