Export (0) Print
Expand All
Expand Minimize

IWebmasterApi.RemoveBlockedUrl

Namespace: Microsoft.Bing.Webmaster.Api

IWebmasterApi.RemoveBlockedUrl Method

Unblock page/directory

Syntax

void RemoveBlockedUrl(
string siteUrl,
BlockedUrl blockedUrl
)

Parameters

siteUrl
Type: System.String
Site url

blockedUrl
Type: Microsoft.Bing.Webmaster.Api.BlockedUrl
Block request

Examples

XML request sample

POST /webmaster/api.svc/pox/RemoveBlockedUrl?apikey=EEDECC1EA4AE341CC57365E075EBC8B6 HTTP/1.1
Content-Type: application/xml; charset=utf-8
Host: ssl.bing.com
Content-Length: 417

<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=EEDECC1EA4AE341CC57365E075EBC8B6 HTTP/1.1
Content-Type: application/json; charset=utf-8
Host: ssl.bing.com
Content-Length: 215


{
"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
}

See Also

Show:
© 2014 Microsoft