Skip to content
Get started

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)

ParametersExpand Collapse
team_id: str
asset_ids: Sequence[str]

Reference assets whose imagery seeds the drafted detection instruction

ReturnsExpand Collapse
class IPFilterDraftInstructionResponse: …
instruction: str

Drafted natural-language detection instruction derived from the reference assets

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"
}