Draft Instruction
client.teams.ipFilters.draftInstruction(stringteamID, IPFilterDraftInstructionParams { assetIds } body, RequestOptionsoptions?): IPFilterDraftInstructionResponse { 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)
Draft Instruction
import Scenario from '@scenario-labs/sdk';
const client = new Scenario({
apiKey: process.env['SCENARIO_SDK_API_KEY'], // This is the default and can be omitted
apiSecret: process.env['SCENARIO_SDK_API_SECRET'], // This is the default and can be omitted
});
const response = await client.teams.ipFilters.draftInstruction('teamId', { assetIds: ['string'] });
console.log(response.instruction);{
"instruction": "instruction"
}Returns Examples
{
"instruction": "instruction"
}