Draft Instruction
teams.ip_filters.draft_instruction(strteam_id, IPFilterDraftInstructionParams**kwargs) -> IPFilterDraftInstructionResponse
POST/teams/{teamId}/ip-filters/draft-instruction
Draft a custom IP-detection filter instruction from reference assets (the caller must have read access to every asset)
Draft Instruction
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
)
response = client.teams.ip_filters.draft_instruction(
team_id="teamId",
asset_ids=["string"],
)
print(response.instruction){
"instruction": "instruction"
}Returns Examples
{
"instruction": "instruction"
}