Skip to content
Get started

Draft Instruction

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)

Path ParametersExpand Collapse
teamId: string
Body ParametersJSONExpand Collapse
assetIds: array of string

Reference assets whose imagery seeds the drafted detection instruction

ReturnsExpand Collapse
instruction: string

Drafted natural-language detection instruction derived from the reference assets

Draft Instruction

curl https://api.cloud.scenario.com/v1/teams/$TEAM_ID/ip-filters/draft-instruction \
    -H 'Content-Type: application/json' \
    -u "$SCENARIO_SDK_API_KEY:SCENARIO_SDK_API_SECRET" \
    -d '{
          "assetIds": [
            "string"
          ]
        }'
{
  "instruction": "instruction"
}
Returns Examples
{
  "instruction": "instruction"
}