DELETE /api/groups/:group_id/memberships

remove member from a group (group admin privileges required)

Success Response Code: 204

Params

Param name Description
group_id
required

id / name of group


Value: Must be a String
membership_id
optional

group membership is determined by membership_id or user_id inside the group_membership hash


Value: Must be a Integer
group_membership
optional

Value: Must be a Hash
group_membership[user_id]
optional

user id


Value: Must be a Integer

Example Curl Commands

curl -X DELETE -v --basic -u "emily@socialcast.com:demo" https://demo.socialcast.com/api/groups/hrteam/memberships/30.json
curl -X DELETE -v --basic -u "emily@socialcast.com:demo" https://demo.socialcast.com/api/groups/hrteam/memberships -H"Content-Type: application/json" -d'{"group_membership":{"id":30}}'
curl -X DELETE -v --basic -u "emily@socialcast.com:demo" https://demo.socialcast.com/api/groups/hrteam/memberships -H"Content-Type: application/json" -d'{"group_membership":{"user_id":26}}'

Examples

DELETE /api/groups/20/memberships.json
{
  "group_membership": {
    "user_id": "32"
  }
}
204