PATCH v1/core/accounts/{accID}/domainfiltering/customfilters/{filterID}

Updates a custom filter with specified ID.

Request Information

Parameters

NameDescriptionAdditional information
accID
No documentation available.

Define this parameter in the request URI.

filterID

Define this parameter in the request URI.

value
No documentation available.

Define this parameter in the request body.

Request body formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: One or more errors occurred.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: One or more errors occurred.

text/javascript

Sample:

An exception has occurred while using the formatter 'JsonPMediaTypeFormatter' to generate sample for media type 'text/javascript'. Exception message: One or more errors occurred.

application/xml, text/xml

Sample:
<JsonPatchDocumentOfExpandedFilter76FemLeQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Marvin.JsonPatch" />

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'JsonPatchDocument`1'.

application/bson

Sample:

An exception has occurred while using the formatter 'BsonMediaTypeFormatter' to generate sample for media type 'application/bson'. Exception message: Requested value 'sample string 3' was not found.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "Success": true,
  "Data": {
    "ID": 1,
    "Name": "sample string 2",
    "Description": "sample string 3",
    "Type": "Whitelist|Blacklist|Custom|System"
  },
  "ErrorCode": 2,
  "ErrorDescription": "sample string 3",
  "Meta": "sample string 4"
}

text/javascript

Sample:
{"Success":true,"Data":{"ID":1,"Name":"sample string 2","Description":"sample string 3","Type":0},"ErrorCode":2,"ErrorDescription":"sample string 3","Meta":"sample string 4"}

application/xml, text/xml

Sample:
<PBNBReturnOfFilter76FemLeQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pbnb_models">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/pbnb_models.dnf">
    <d2p1:Description>sample string 3</d2p1:Description>
    <d2p1:ID>1</d2p1:ID>
    <d2p1:Name>sample string 2</d2p1:Name>
    <d2p1:Type>Whitelist|Blacklist|Custom|System</d2p1:Type>
  </Data>
  <ErrorCode>2</ErrorCode>
  <ErrorDescription>sample string 3</ErrorDescription>
  <Meta>sample string 4</Meta>
  <Success>true</Success>
</PBNBReturnOfFilter76FemLeQ>

application/bson

Sample:
�SuccessDataRIDNamesample string 2Descriptionsample string 3TypeErrorCodeErrorDescriptionsample string 3Metasample string 4