analytics.management.filters.insert

POST {{baseUrl}}/management/accounts/:accountId/filters?alt=<string>&fields=<string>&key=<string>&oauth_token=<string>&prettyPrint=<boolean>&quotaUser=<string>&userIp=<string>

Create a new filter.

Request Params

KeyDatatypeRequiredDescription
altstringData format for the response.
fieldsstringSelector specifying which fields to include in a partial response.
keystringAPI key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_tokenstringOAuth 2.0 token for the current user.
prettyPrintstringReturns response with indentations and line breaks.
quotaUserstringAn opaque string that represents a user for quota purposes. Must not exceed 40 characters.
userIpstringDeprecated. Please use quotaUser instead.

Request Body

{"accountId"=>"<string>", "advancedDetails"=>{"caseSensitive"=>"<boolean>", "extractA"=>"<string>", "extractB"=>"<string>", "fieldA"=>"<string>", "fieldAIndex"=>"<integer>", "fieldARequired"=>"<boolean>", "fieldB"=>"<string>", "fieldBIndex"=>"<integer>", "fieldBRequired"=>"<boolean>", "outputConstructor"=>"<string>", "outputToField"=>"<string>", "outputToFieldIndex"=>"<integer>", "overrideOutputField"=>"<boolean>"}, "excludeDetails"=>{"caseSensitive"=>true, "expressionValue"=>"nostrud eu pariatur et sed", "field"=>"aliqua dolore consectetur ullamco", "fieldIndex"=>-99094297, "kind"=>"analytics#filterExpression", "matchType"=>"est occaecat do Excepteur"}, "id"=>"<string>", "includeDetails"=>{"caseSensitive"=>false, "expressionValue"=>"occaecat reprehenderit cupidatat sunt sint", "field"=>"in dolor Ut", "fieldIndex"=>28991676, "kind"=>"analytics#filterExpression", "matchType"=>"ullamco"}, "lowercaseDetails"=>{"field"=>"<string>", "fieldIndex"=>"<integer>"}, "name"=>"<string>", "parentLink"=>{"href"=>"<string>", "type"=>"analytics#account"}, "searchAndReplaceDetails"=>{"caseSensitive"=>"<boolean>", "field"=>"<string>", "fieldIndex"=>"<integer>", "replaceString"=>"<string>", "searchString"=>"<string>"}, "type"=>"<string>", "uppercaseDetails"=>{"field"=>"<string>", "fieldIndex"=>"<integer>"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;accountId&quot;:&quot;\u003cstring\u003e&quot;,&quot;advancedDetails&quot;:{&quot;caseSensitive&quot;:&quot;\u003cboolean\u003e&quot;,&quot;extractA&quot;:&quot;\u003cstring\u003e&quot;,&quot;extractB&quot;:&quot;\u003cstring\u003e&quot;,&quot;fieldA&quot;:&quot;\u003cstring\u003e&quot;,&quot;fieldAIndex&quot;:&quot;\u003cinteger\u003e&quot;,&quot;fieldARequired&quot;:&quot;\u003cboolean\u003e&quot;,&quot;fieldB&quot;:&quot;\u003cstring\u003e&quot;,&quot;fieldBIndex&quot;:&quot;\u003cinteger\u003e&quot;,&quot;fieldBRequired&quot;:&quot;\u003cboolean\u003e&quot;,&quot;outputConstructor&quot;:&quot;\u003cstring\u003e&quot;,&quot;outputToField&quot;:&quot;\u003cstring\u003e&quot;,&quot;outputToFieldIndex&quot;:&quot;\u003cinteger\u003e&quot;,&quot;overrideOutputField&quot;:&quot;\u003cboolean\u003e&quot;},&quot;created&quot;:&quot;2015-01-27T01:38:01.293Z&quot;,&quot;excludeDetails&quot;:{&quot;caseSensitive&quot;:true,&quot;expressionValue&quot;:&quot;deserunt&quot;,&quot;field&quot;:&quot;anim ullamco&quot;,&quot;fieldIndex&quot;:98538224,&quot;kind&quot;:&quot;analytics#filterExpression&quot;,&quot;matchType&quot;:&quot;Excepteur labore Duis est ex&quot;},&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;includeDetails&quot;:{&quot;caseSensitive&quot;:false,&quot;expressionValue&quot;:&quot;paria&quot;,&quot;field&quot;:&quot;aute officia&quot;,&quot;fieldIndex&quot;:66221406,&quot;kind&quot;:&quot;analytics#filterExpression&quot;,&quot;matchType&quot;:&quot;qui sed &quot;},&quot;kind&quot;:&quot;analytics#filter&quot;,&quot;lowercaseDetails&quot;:{&quot;field&quot;:&quot;\u003cstring\u003e&quot;,&quot;fieldIndex&quot;:&quot;\u003cinteger\u003e&quot;},&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;parentLink&quot;:{&quot;href&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;analytics#account&quot;},&quot;searchAndReplaceDetails&quot;:{&quot;caseSensitive&quot;:&quot;\u003cboolean\u003e&quot;,&quot;field&quot;:&quot;\u003cstring\u003e&quot;,&quot;fieldIndex&quot;:&quot;\u003cinteger\u003e&quot;,&quot;replaceString&quot;:&quot;\u003cstring\u003e&quot;,&quot;searchString&quot;:&quot;\u003cstring\u003e&quot;},&quot;selfLink&quot;:&quot;id eiusmod aute&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;updated&quot;:&quot;1977-12-07T12:59:31.601Z&quot;,&quot;uppercaseDetails&quot;:{&quot;field&quot;:&quot;\u003cstring\u003e&quot;,&quot;fieldIndex&quot;:&quot;\u003cinteger\u003e&quot;}}