Skip to content
Get started

Update

teams.ip_filters.update(strfilter_id, IPFilterUpdateParams**kwargs) -> IPFilterUpdateResponse
PUT/teams/{teamId}/ip-filters/{filterId}

Enable, disable, or override a built-in or custom IP-detection filter for a team

ParametersExpand Collapse
team_id: str
filter_id: str
enabled: Optional[bool]

Whether the filter is active

instruction: Optional[str]

Natural-language detection instruction

maxLength2000
minLength1
name: Optional[str]

Display name for the filter

ReturnsExpand Collapse
class IPFilterUpdateResponse: …
filter: object

The updated filter, including its enabled state

Update

import os
from scenario_sdk import Scenario

client = Scenario(
    api_key=os.environ.get("SCENARIO_SDK_API_KEY"),  # This is the default and can be omitted
    api_secret=os.environ.get("SCENARIO_SDK_API_SECRET"),  # This is the default and can be omitted
)
ip_filter = client.teams.ip_filters.update(
    filter_id="filterId",
    team_id="teamId",
)
print(ip_filter.filter)
{
  "filter": {}
}
Returns Examples
{
  "filter": {}
}