API returned E0000022 when removing user from a group

I’m trying to remove a member from a group using the Okta Groups API but it returns an E0000022 error code. I’m using the Postman collection downloaded from the site. Also I can successfully get the list a users in a group just the delete part does not work. Below is a curl command of what I’m trying and the response.

curl --location --request DELETE ‘.okta.com/api/v1/groups//users/***********’
–header ‘Authorization: SSWS *******************’

“errorCode”: “E0000022”,
“errorSummary”: “The endpoint does not support the provided HTTP method”,
“errorLink”: “E0000022”,
“errorId”: “oaeW4Fhqh0ERuuSFTXpBqTMAg”,


In order to remove a user from a group you will need to use,