IWebmasterApi.AddDisavowedLink(String, String, Int32) 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.
Submit Urls to Disavow
public:
void AddDisavowedLink(System::String ^ siteUrl, System::String ^ disavowUrl, int entityType);
[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 AddDisavowedLink (string siteUrl, string disavowUrl, int entityType);
abstract member AddDisavowedLink : string * string * int -> unit
Public Sub AddDisavowedLink (siteUrl As String, disavowUrl As String, entityType As Integer)
Parameters
- siteUrl
- String
- disavowUrl
- String
- entityType
- Int32
- Attributes
Examples
XML request sample
POST /webmaster/api.svc/pox/AddDisavowedLink?apikey=sampleapikeyedecc1ea4ae341cc8b6 HTTP/1.1
Content-Type: application/xml; charset=utf-8
Host: ssl.bing.com
<AddDisavowedLink xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Bing.Webmaster.Api">
<siteUrl>http://example.com</siteUrl>
<disavowUrl>http://domain-to-disavow.com/</disavowUrl>
<entityType>2</entityType>
</AddDisavowedLink>
XML response sample
HTTP/1.1 200 OK
Content-Length: 0
JSON request sample
POST /webmaster/api.svc/json/AddSite?apikey=sampleapikeyedecc1ea4ae341cc8b6 HTTP/1.1
Content-Type: application/json; charset=utf-8
Host: ssl.bing.com
{
"siteUrl":"http://example.com",
"disavowUrl":"http://domain-to-disavow.com",
"entityType": 2
}
JSON response sample
HTTP/1.1 200 OK
Content-Length: 0