Updates a word filter.

Unspecified parameters mean that this parameter is unchanged.

This method requires the following permissions: newsfeed.

Parameters

filter_id
integer (positive)

The identifier of the filter to update.

name
string

The user-visible name of the filter.

words
array of strings

Words (case-insensitive) that match this filter, as a JSON array.

contexts
array of strings

Which contexts this filter applies in:

  • friends — the default (friends) news feed
  • groups — the groups news feed
expiry_date
integer

The unixtime when this filter expires. If the timestamp is in the past, or if this parameter is omitted, the filter will not expire.

Result

Returns true on success.

Errors

Global errors may occur when calling this method.