Create
client.teams.ipFilters.create(stringteamID, IPFilterCreateParams { category, name, enabled, 2 more } body, RequestOptionsoptions?): IPFilterCreateResponse { filter }
POST/teams/{teamId}/ip-filters
Create a custom IP-detection filter for a team (built-in filters are toggled via PUT /teams/{teamId}/ip-filters/{filterId})
Create
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 ipFilter = await client.teams.ipFilters.create('teamId', {
category: 'artist-style',
name: 'name',
});
console.log(ipFilter.filter);{
"filter": {}
}Returns Examples
{
"filter": {}
}