Bungienetplatform Wiki
Advertisement
BanMember
Accessibility Private
Method POST
URI /Group/{groupId}/Members/{membershipId}/Ban/

Summary[]

Ban a member for a period of time from a group that the current user is an admin for. [1]

Path Parameters[]

Name Description

groupId

A valid groupId.

membershipId

A valid Bungie.net membershipId that is in the group.

Query String Parameters[]

Name Description

JSON POST Parameters[]

Name Description

comment

A comment to send to the member with the ban.

length

The length of the ban. 1=Week, 2=Two Weeks, 3=Three Weeks, 4=Month, 5=Three Months, 6=Six Months, 7=Year, 8=Forever, 9=Three Minutes, 10=An Hour, 11=Thirty Days

Example[]

Request[]

POST https://www.bungie.net/Group/39966/Members/5197148/Ban/

{
    "comment": "You were banned for a week for being too hipster.",
    "length": 1
}

Response[]

{
    "Response": 0,
    "ErrorCode": 1,
    "ThrottleSeconds": 0,
    "ErrorStatus": "Success",
    "Message": "Ok",
    "MessageData": {}
}

References[]

Advertisement