IWebmasterApi.EnableDisableQueryParameter(String, String, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Update URL normalization parameter
public:
void EnableDisableQueryParameter(System::String ^ siteUrl, System::String ^ queryParameter, bool isEnabled);
[System.ServiceModel.FaultContract(typeof(Microsoft.Bing.Webmaster.Api.Interfaces.ApiFault))]
[System.ServiceModel.OperationContract]
[System.ServiceModel.Web.WebInvoke(BodyStyle=System.ServiceModel.Web.WebMessageBodyStyle.WrappedRequest, Method="POST")]
public void EnableDisableQueryParameter(string siteUrl, string queryParameter, bool isEnabled);
abstract member EnableDisableQueryParameter : string * string * bool -> unit
Public Sub EnableDisableQueryParameter (siteUrl As String, queryParameter As String, isEnabled As Boolean)
Parameters
- siteUrl
- String
- queryParameter
- String
- isEnabled
- Boolean
- Attributes
Examples
XML request sample
POST /webmaster/api.svc/pox/EnableDisableQueryParameter?apikey=sampleapikeyedecc1ea4ae341cc8b6 HTTP/1.1
Content-Type: application/xml; charset=utf-8
Host: ssl.bing.com
<EnableDisableQueryParameter xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Bing.Webmaster.Api">
<siteUrl>http://example.com/</siteUrl>
<queryParameter>hello</queryParameter>
<isEnabled>true</isEnabled>
</EnableDisableQueryParameter>
XML response sample
HTTP/1.1 200 OK
Content-Length: 0
JSON request sample
POST /webmaster/api.svc/json/EnableDisableQueryParameter?apikey=sampleapikeyedecc1ea4ae341cc8b6 HTTP/1.1
Content-Type: application/json; charset=utf-8
Host: ssl.bing.com
{"siteUrl":"http://example.com/","queryParameter":"hello","isEnabled":false}
JSON response sample
HTTP/1.1 200 OK
Content-Length: 10
Content-Type: application/json; charset=utf-8
{
"d":null
}
Remarks
queryParameter may contain only unreserved letters and colon symbol (:).
The site can has only limited number of url normalization marameters.