Skip to main content
POST
/
admin
/
v1
/
networks
/
{network_id}
/
spaces
/
{space_id}
/
members
/
{user_id}
/
ban
Ban a user from the network
curl --request POST \
  --url https://api.mn.co/admin/v1/networks/{network_id}/spaces/{space_id}/members/{user_id}/ban \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "ban_reason": "Spam"
}'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

space_id
integer
required
user_id
integer
required
network_id
required

The Network's unique integer ID, or subdomain Unique numeric network ID

Body

application/json

Submit results as JSON

Request body for banning a user from the network

ban_reason
string

The reason for banning the user

Example:

"Spam"

Response

User successfully banned (returns empty object)

Empty response body