IWebmasterApi.RemoveBlockedUrl(String, BlockedUrl) 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.
Unblock page/directory
public:
void RemoveBlockedUrl(System::String ^ siteUrl, Microsoft::Bing::Webmaster::Api::Interfaces::BlockedUrl ^ blockedUrl);
[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 RemoveBlockedUrl (string siteUrl, Microsoft.Bing.Webmaster.Api.Interfaces.BlockedUrl blockedUrl);
abstract member RemoveBlockedUrl : string * Microsoft.Bing.Webmaster.Api.Interfaces.BlockedUrl -> unit
Parameters
- siteUrl
- String
- blockedUrl
- BlockedUrl
- Attributes
Examples
XML request sample
POST /webmaster/api.svc/pox/RemoveBlockedUrl?apikey=sampleapikeyedecc1ea4ae341cc8b6 HTTP/1.1
Content-Type: application/xml; charset=utf-8
Host: ssl.bing.com
<RemoveBlockedUrl xmlns="http://tempuri.org/">
<siteUrl>http://example.com</siteUrl>
<blockedUrl xmlns:a="http://schemas.datacontract.org/2004/07/Microsoft.Bing.Webmaster.Api" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<a:Date>0001-01-01T00:00:00</a:Date>
<a:EntityType>Directory</a:EntityType>
<a:RequestType>CacheOnly</a:RequestType>
<a:Url>http://example.com/directory1/</a:Url>
</blockedUrl>
</RemoveBlockedUrl>
XML response sample
HTTP/1.1 200 OK
Content-Length: 0
JSON request sample
POST /webmaster/api.svc/json/RemoveBlockedUrl?apikey=sampleapikeyedecc1ea4ae341cc8b6 HTTP/1.1
Content-Type: application/json; charset=utf-8
Host: ssl.bing.com
{
"siteUrl":"http://example.com",
"blockedUrl":
{
"__type":"BlockedUrl:#Microsoft.Bing.Webmaster.Api",
"Date":"/Date(-62135568000000-0800)/",
"EntityType":1,
"RequestType":0,
"Url":"http://example.com/directory1/"
}
}
JSON response sample
HTTP/1.1 200 OK
Content-Length: 10
Content-Type: application/json; charset=utf-8
{
"d":null
}