IWebmasterApi.SaveCrawlSettings
Namespace: Microsoft.Bing.Webmaster.Api
IWebmasterApi.SaveCrawlSettings Method
Save crawl settings
Syntax
void SaveCrawlSettings( string siteUrl, CrawlSettings crawlSettings )
Parameters
siteUrl
Type: System.String
Site url
crawlSettings
Type: Microsoft.Bing.Webmaster.Api.CrawlSettings
Crawl settings
Examples
XML request sample
POST /webmaster/api.svc/pox/SaveCrawlSettings?apikey=EEDECC1EA4AE341CC57365E075EBC8B6 HTTP/1.1 Content-Type: application/xml; charset=utf-8 Host: ssl.bing.com Content-Length: 360 <SaveCrawlSettings xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Bing.Webmaster.Api"> <siteUrl>http://example.com</siteUrl> <crawlSettings xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Bing.Webmaster.Api" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <a:AjaxEnabled>true</a:AjaxEnabled> <a:CrawlRate>BQUFBQUFBQUFBQUFBQUFBQYGBgUEAwME</a:CrawlRate> </crawlSettings> </SaveCrawlSettings>
XML response sample
HTTP/1.1 200 OK Content-Length: 0
JSON request sample
POST /webmaster/api.svc/json/SaveCrawlSettings?apikey=EEDECC1EA4AE341CC57365E075EBC8B6 HTTP/1.1
Content-Type: application/json; charset=utf-8
Host: ssl.bing.com
Content-Length: 188
{
"siteUrl":"http:\/\/example.com",
"crawlSettings":
{
"__type":"CrawlSettings:#Microsoft.Bing.Webmaster.Api",
"AjaxEnabled":true,
"CrawlRate":[5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
6,
6,
6,
5,
4,
3,
3,
4]
}
}
JSON response sample
HTTP/1.1 200 OK
Content-Length: 10
Content-Type: application/json; charset=utf-8
{
"d":null
}
See Also
Show: