Update Group [Remove Members]
Use this endpoint to remove a User (Member) from an existing Group
Endpoint | Method |
---|---|
| PATCH |
In the sample below, 2 users are removed from the group.
Request-object:
{
"Operations": [{
"op": "Remove",
"path": "members",
"value": [
{"value": "a3792aca-8f99-4d4b-a1f2-2b31e871b634"},
{"value": "6dec03a9-dedd-4940-8763-6201761d022e"}
]
}]
}
Property | Type | Required |
|
---|---|---|---|
op | Type of operation.
| yes |
|
path | The path to the property to change. | yes |
|
value | An array of 1 or more objects containg a property called “value”, referencing a talentech-userid | yes |
|
Sample-Request:
curl --location --request PATCH '[API-URL]/scim/Groups/[GROUP-ID]' \
--header 'Authorization: Bearer [API-TOKEN]' \
--header 'Content-Type: application/json' \
--data-raw '{
"Operations": [{
"op": "Remove",
"path": "members",
"value": [
{"value": "a3792aca-8f99-4d4b-a1f2-2b31e871b634"},
{"value": "6dec03a9-dedd-4940-8763-6201761d022e"}
]
}]
}'
Responses:
Success - 204 No-Content | |
---|---|
Statuscode | 204 |
404-Not found | |
---|---|
Statuscode | 404 |