Communities::Ban
Create Ban
Ban a contact from a community
post/communities/{community_id}/bans
Path parameters
community_idinteger required
Request body
Example request
{
"communities_ban": {
"communities_ban": {
"contact_id": "GhIjKl",
"reason": "Violated community guidelines"
}
}
}Response
Created
Example response
{
"id": 201,
"public_id": "MnOpQr",
"community_id": 1,
"bannable_type": "Community",
"bannable_id": 1,
"banned_by_id": 12,
"reason": "Violated community guidelines",
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:00:00.000Z",
"contact": {
"id": 55,
"public_id": "GhIjKl",
"email_address": "member@example.com",
"first_name": "Jane",
"last_name": "Doe",
"phone_number": null
}
}