IWebmasterApi.UpdateDeepLink Method

Definition

Caution

use AddDeepLinkBlocks

Update deep link weight

public:
 void UpdateDeepLink(System::String ^ siteUrl, System::String ^ algoUrl, System::String ^ deepLink, Microsoft::Bing::Webmaster::Api::Interfaces::DeepLink::DeepLinkWeight weight);
[System.Obsolete("use AddDeepLinkBlocks", true)]
[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 UpdateDeepLink (string siteUrl, string algoUrl, string deepLink, Microsoft.Bing.Webmaster.Api.Interfaces.DeepLink.DeepLinkWeight weight);
abstract member UpdateDeepLink : string * string * string * Microsoft.Bing.Webmaster.Api.Interfaces.DeepLink.DeepLinkWeight -> unit
Public Sub UpdateDeepLink (siteUrl As String, algoUrl As String, deepLink As String, weight As DeepLink.DeepLinkWeight)

Parameters

siteUrl
String
algoUrl
String
deepLink
String
Attributes

Examples

XML request sample

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

<UpdateDeepLink xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Bing.Webmaster.Api">
<siteUrl>http://example.com</siteUrl>
<algoUrl>http://example.com/home.php</algoUrl>
<deepLink>http://example.com/deeplink</deepLink>
<weight>Disabled</weight>
</UpdateDeepLink>

XML response sample

HTTP/1.1 200 OK
Content-Length: 0

JSON request sample

POST /webmaster/api.svc/json/UpdateDeepLink?apikey=sampleapikeyedecc1ea4ae341cc8b6 HTTP/1.1
Content-Type: application/json; charset=utf-8
Host: ssl.bing.com


{
"siteUrl":"http://example.com",
"algoUrl":"http://example.com/home.php",
"deepLink":"http://example.com/deeplink",
"weight":0
}

JSON response sample

HTTP/1.1 200 OK
Content-Length: 10
Content-Type: application/json; charset=utf-8


{
"d":null
}

Remarks

The deep link can be disabled from showing on the SERP by using Disabled value for weight parameter.

Applies to