groups.ban
Adds a user or a group to the community blacklist.
Parameters
integer
Community ID.
Required parameter
integer
Community or user ID to be added to the blacklist.
Use a negative value to designate a community ID. For example owner_id = -1 corresponds to VKontakte API (club1) community ID.
positive
Ban expiration date in Unixtime format. The maximum possible value, which can be specified, is one year from the beginning.
If the parameter is not specified, the user will be added to blacklist forever.
positive
Ban reason:
- •0 — Other (by default);
- •1 — Spam;
- •2 — Harassment;
- •3 — Profanity;
- •4 — Irrelevant messages.
string
Text of the comment to the ban.
checkbox
1 — comment is visible to a blacklisted user; 0 — comment is not visible to a blacklisted user (by default).
Result
Returns 1 if succeeded.
Error codes
Common errors may occur during execution