Skip to content

Delete an employee from a group

Request

Security
x-api-key
Path
idstringrequired

Unique identifier for the employee

Bodyapplication/jsonrequired

Delete an employee from a group.

groupstringrequired

The group to remove employee from.

Example:"Engineering team"
DELETE
/v1/employees/{id}/groups
curl -i -X DELETE \
  'https://api.pushsecurity.com/v1/employees/{id}/groups' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -d '{
    "group": "Engineering team"
  }'

Responses

OK. Returns all groups still associated with the employee after being removed.

Bodyapplication/json
groupsArray of stringsrequired

The groups associated with the employee.

Example:
[ "Other team" ]
Response
{ "groups": [ "Other team" ] }